From xemacs-m  Fri May  9 18:43:02 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id SAA11568
	for <xemacs-beta@xemacs.org>; Fri, 9 May 1997 18:43:02 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id QAA14363; Fri, 9 May 1997 16:55:02 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id QAA15959; Fri, 9 May 1997 16:42:30 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id QAA29475; Fri, 9 May 1997 16:42:30 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id QAA10844; Fri, 9 May 1997 16:42:27 -0700
Date: Fri, 9 May 1997 16:42:27 -0700
Message-Id: <199705092342.QAA10844@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: wmperry@aventail.com
Cc: xemacs-beta@xemacs.org
Subject: GPM support, patches
In-Reply-To: <199705092105.OAA06380@newman.aventail.com>
References: <199705092105.OAA06380@newman.aventail.com>
X-Mailer: VM 6.24 under 20.1 XEmacs Lucid (beta15)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Bill" == William M Perry <wmperry@aventail.com> writes:

Bill> Here is a patch that enables GPM support based against 20.2-b5 - seems to
Bill> work fine for me under linux.

Bill> Basically, this patches the event-Xt loop to also check the mouse fd used
Bill> by GPM for events, and dispatch them.  Also included is a patch to
Bill> lisp/prim/mouse.el and lisp/x11/x-mouse.el to make them less annoying.
Bill> x-mouse.el was unconditionally setting mouse-yank-function to
Bill> 'x-yank-selection', which completely fails on a TTY.  I replaced it with a
Bill> version that switches off of the device-type, and it seems to work fine.

I have incorporated gpm support into the new configure system that is
slated for 20.3.  As with much of my changes, I have no Linux system
available to conveniently test this on, so there are likely to be
bugs.  I assume gpm support will *not* be added to 20.2, but will be
in 20.3.

Bill or Steven, one of you'll likely have to re-patch this sometime in
20.3 to add the non-configure part of the gpm support.

Martin
(I lost many email messages last week)

