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: Stefan Monnier
Subject: Re: master 3b41141708: Expose the name of an event's input device to Lisp
Date: Fri, 08 Apr 2022 22:52:53 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>> 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.

Indeed.

> 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.

We could put it in the "posn" thingy, but at the same time it's not
really a "posn" and it's kinda weird to duplicate it into the start and
the end posn of an event.  It would be better to associate it with the
event itself and have an `event-device` function to access it.


        Stefan




reply via email to

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