emacs-devel
[Top][All Lists]
Advanced

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

Re: master 3b41141708: Expose the name of an event's input device to Lis


From: Po Lu
Subject: Re: master 3b41141708: Expose the name of an event's input device to Lisp
Date: Sun, 10 Apr 2022 08:58:38 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> To some extent, yes, but we can try and design the new representation to
> be compatible with the old one.  E.g. the "class" could be obtained via:
>
>     (defun event-class (e)
>       (if (consp e)
>           (get (event-basic-type e) 'event-class)
>         character-event-class))

Unfortunately the device class information is separate from the basic
type of the event.  i.e. trackpoints send mouse movement, and Lars' foot
pedal simply pretends to be a keyboard and sends "b".

> Here, I'd side with Eli and say that the resulting code churn wojuld be
> more trouble than it's worth.

Hmm...  I will try to think of something.


reply via email to

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