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: Eli Zaretskii
Subject: Re: master 3b41141708: Expose the name of an event's input device to Lisp
Date: Fri, 08 Apr 2022 09:02:46 +0300

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: emacs-devel@gnu.org
> Date: Thu, 07 Apr 2022 19:41:29 -0400
> 
> >> Any chance we could attach this info to the events rather than storing
> >> them in some global var making it unclear to which event it applies?
> >
> > We can't put it in the event list, i.e. key events are mostly just
> > characters, and can't be extended.
> 
> I thought we only need it for events like scroll events, i.e. not for
> plain character events.
> 
> > 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.

Can we make a step back and discuss why do we need this information in
Emacs, and how it is supposed to be used?



reply via email to

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