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: Sat, 09 Apr 2022 08:24:49 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

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

>>> Which event the global variable applies to is also perfectly clear: it
>>> applies to the last event that was read, either by the command loop or
>>> read-event.
>> Yeah, it works, but relying on state is ugly and better avoided if
>> we can.
>
> How 'bout a midway solution: we keep the var but we additionally put
> that info into those events where we can?

I'm fine with that, but we need a consistent way to get it from the
event structures.

WDYT about putting the device in the mouse position list?  (Of course,
Eli's concerns about the info itself will have to be addressed.)

That way, we can have a single function `posn-device' to access the
device.


reply via email to

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