all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: alinsoar@voila.fr
Cc: emacs-devel@gnu.org
Subject: Re: GPM in emacs does not work?
Date: Sun, 8 Feb 2009 23:09:38 +1300	[thread overview]
Message-ID: <18830.44898.322278.238388@kahikatea.snap.net.nz> (raw)
In-Reply-To: <720315.95471234016848926.JavaMail.www@wwinf4601>

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




  reply	other threads:[~2009-02-08 10:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-07 14:27 GPM in emacs does not work? A. Soare
2009-02-08 10:09 ` Nick Roberts [this message]
2009-02-08 20:27   ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2009-02-08 14:15 A. Soare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18830.44898.322278.238388@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=alinsoar@voila.fr \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.