[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GPM in emacs does not work?

From: Nick Roberts
Subject: Re: GPM in emacs does not work?
Date: Sun, 8 Feb 2009 23:09:38 +1300

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 via email to

[Prev in Thread] Current Thread [Next in Thread]