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 11:17:01 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

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

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

But wouldn't that mean the `event-device' function would have to have a
specific implementation for each kind of event, with different indexes
passed to `nth', since we can only add information to the end of each
event?

That's the sort of thing I was trying to avoid.

Thanks.


reply via email to

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