From xemacs-m  Thu Aug 21 09:38:34 1997
Received: from newman.aventail.com (root@newman.aventail.com [199.238.236.1])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id JAA08682
	for <xemacs-beta@xemacs.org>; Thu, 21 Aug 1997 09:38:33 -0500 (CDT)
Received: from kramer.in.aventail.com (wmperry@kramer.in.aventail.com [192.168.1.12])
	by newman.aventail.com (8.8.5/8.8.5) with ESMTP id HAA19319;
	Thu, 21 Aug 1997 07:38:33 -0700 (PDT)
Received: (from wmperry@localhost)
	by kramer.in.aventail.com (8.8.5/8.8.5) id HAA06016;
	Thu, 21 Aug 1997 07:37:45 -0700
To: jaeger@informatik.uni-kl.de
Cc: xemacs-beta@xemacs.org
Subject: Re: [PATCH] potential GPM fix for select_filedesc failed assertion
References: <199708141558.IAA20822@kramer.in.aventail.com> <u8zpqdg97s.fsf@arthur.rhein-neckar.de> <8690xxc5ol.fsf@kramer.in.aventail.com> <u8u3gjg84v.fsf@arthur.rhein-neckar.de>
Errors-to: wmperry@aventail.com
Reply-to: wmperry@aventail.com
X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7</SYF`{vYQ(&RI1&EiH[FvT;J}@f!4kfz
 x_!Y#=y{Uuj9GvUi=cPuajQ(Z42R[wE@{G,sn$qGr5g/wnb*"*ktI+,CD}1Z'wxrM2ag-r0p5I6\nA
 [WJopW_J.WY;
From: wmperry@aventail.com (William M. Perry)
Date: 21 Aug 1997 07:37:45 -0700
In-Reply-To: Andreas Jaeger's message of "21 Aug 1997 12:09:20 +0200"
Message-ID: <864t8j61qe.fsf@kramer.in.aventail.com>
Lines: 42
X-Mailer: Gnus v5.4.64/XEmacs 20.3(beta18) - "Bratislava"

Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:

> >>>>> William M Perry writes:
> 
> /> Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:
> >> >>>>> William M Perry writes:
> >> 
> >> > [Patch to event-Xt.c ]
> >> 
> >> Thanks for the patch. It solves for me the problem of editing a
> >> file. But there's still a problem: I get a segmentation fault when
> >> I'm leaving XEmacs like in the following situation:
> >> xemacs 
> >> M-x gnuserver-start
> >> gnuclient some-file
> >> C-x # some-file
> >> C-x C-c -> aborts
> >> 
> >> Your patch was for emacs_Xt_select_console. I think we need also
> >> a patch for emacs_Xt_unselect_console.
> 
> />   Try this patch.
> 
> /> -Bill P.
> 
> /> *** event-Xt.c	1997/08/20 14:01:03	1.1
> /> --- event-Xt.c	1997/08/20 14:03:17
> /> [...]
> 
> Thanks. This patch solves the problem for leaving XEmacs - and
> therefore gpm is working without aborts any more.
> 
> Steve, I think that patch should go into the next beta.

  The only problem I have seen with this patch is that GPM doesn't work on
the second console.  And then after exiting the gnuclient frame, it doesn't 
work on the original one.  I'm going to have to do some experimentation to
see where exactly the best place to put this code is.  I'm a little fuzzy
on the whole device/console thing.  I've been meaning to give ben a call
for about 2 months now, but haven't really had the time.  *sigh*

-Bill P.

