From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: GPM in emacs does not work? Date: Sun, 8 Feb 2009 23:09:38 +1300 Message-ID: <18830.44898.322278.238388@kahikatea.snap.net.nz> References: <720315.95471234016848926.JavaMail.www@wwinf4601> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234089185 24675 80.91.229.12 (8 Feb 2009 10:33:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2009 10:33:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: alinsoar@voila.fr Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 08 11:34:19 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LW6zR-0000TA-BK for ged-emacs-devel@m.gmane.org; Sun, 08 Feb 2009 11:34:17 +0100 Original-Received: from localhost ([127.0.0.1]:55312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LW6y7-0006od-Rb for ged-emacs-devel@m.gmane.org; Sun, 08 Feb 2009 05:32:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LW6y1-0006oY-4H for emacs-devel@gnu.org; Sun, 08 Feb 2009 05:32:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LW6xy-0006oM-Or for emacs-devel@gnu.org; Sun, 08 Feb 2009 05:32:47 -0500 Original-Received: from [199.232.76.173] (port=49700 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LW6xy-0006oJ-Dh for emacs-devel@gnu.org; Sun, 08 Feb 2009 05:32:46 -0500 Original-Received: from viper.snap.net.nz ([202.37.101.23]:52537) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LW6xx-0007wQ-UQ for emacs-devel@gnu.org; Sun, 08 Feb 2009 05:32:46 -0500 Original-Received: from kahikatea.snap.net.nz (unknown [123.255.31.95]) by viper.snap.net.nz (Postfix) with ESMTP id DD2413DB7A5; Sun, 8 Feb 2009 23:09:42 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 6AC478FC6D; Sun, 8 Feb 2009 23:09:39 +1300 (NZDT) In-Reply-To: <720315.95471234016848926.JavaMail.www@wwinf4601> X-Mailer: VM 7.19 under Emacs 22.3.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108869 Archived-At: A. Soare writes: > Emacs does not receive GPM events, even if it is compiled with -lpgm (HAVE_GPM = 1), and (gpm-mouse-start) does not return error. It seems to be due to this change: 1.974 (monnier 12-Sep-08): if (gpm < 0) 1.974 (monnier 12-Sep-08): /* Presumably the GPM daemon has closed the connection. */ 1.974 (monnier 12-Sep-08): close_gpm (); in tty_read_avail_input of keyboard.c. I don't understand it because the GPM manual says about Gpm_GetEvent: It returns 1 on success, -1 on failure, and 0 after closing the connection. The ChangeLog entry says: * keyboard.c (tty_read_avail_input): Forcefully close the gpm connection if Gpm_GetEvent fails. Perhaps Stefan can shed some light. -- Nick http://www.inet.net.nz/~nickrob