delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/06/05:47:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: erasmus.inf.ed.ac.uk: ht set sender to ht AT cogsci DOT ed DOT ac DOT uk using -f
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.4-1: Problem with XEmacs, fonts, and subprocesses.
References: <CFF3E15126A0EF4F96D9FABED7A40266715A49 AT mail DOT i DOT turbinegames DOT com>
<3F7F1883 DOT 4070809 AT urth DOT org>
From: ht AT cogsci DOT ed DOT ac DOT uk (Henry S. Thompson)
Date: Mon, 06 Oct 2003 10:47:03 +0100
In-Reply-To: <3F7F1883.4070809@urth.org> (Terrence Brannon's message of
"Sat, 04 Oct 2003 11:59:15 -0700")
Message-ID: <f5bisn2snoo.fsf@erasmus.inf.ed.ac.uk>
User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux)
MIME-Version: 1.0

Terrence Brannon <metaperl AT urth DOT org> writes:

>>I have just recently upgraded to the latest Cygwin and latest XEmacs.
>>Now, whenever I invoke a subprocess in XEmacs, all text in the XEmacs
>>frame goes blank. I am using zsh as my shell, but the problem always
>>occurs whether I am invoking a subshell, compiling, grepping, or running
>>gnu-serv. I am running Windows XP Pro SP1 and XEmacs 21.4.13.

My experience was similar, and the work-around I found successful was
to launch xemacs from rxvt/bash, rather than from the Task Bar or
Start Menu.  I spent a fair amount of time attempting to discover
whether there was an environment variable which accounted for this,
but failed.

If you're _really_ obsessive (like me :-( about launching from an
icon, compile the following and point the icon at it.

Hope this helps,

ht

#define WIN32

#include <windows.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>

#include <process.h>

int WINAPI
WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR cmdline, int nShow) {

   STARTUPINFO start;
   SECURITY_ATTRIBUTES sec_attrs;
   SECURITY_DESCRIPTOR sec_desc;
   PROCESS_INFORMATION child;
   int retval;

   memset (&start, 0, sizeof (start));
   start.cb = sizeof (start);
   start.dwFlags = STARTF_USESHOWWINDOW;
   start.wShowWindow = SW_HIDE;
      
   sec_attrs.nLength = sizeof (sec_attrs);
   sec_attrs.lpSecurityDescriptor = NULL;
   sec_attrs.bInheritHandle = FALSE;

   if (CreateProcess (NULL, "c:\\cygwin\\bin\\bash -c \"/usr/local/bin/i686-pc-cygwin/xemacs -f gnuserv-start\"", &sec_attrs, NULL, TRUE, 0,
                      NULL, NULL, &start, &child))
   {
      CloseHandle (child.hThread);
      CloseHandle (child.hProcess);
   }
   else
     exit(1);
   return retval;

}

-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht AT cogsci DOT ed DOT ac DOT uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019