emacs-devel
[Top][All Lists]
Advanced

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

Re: What is an "input event"?


From: martin rudalics
Subject: Re: What is an "input event"?
Date: Fri, 23 Nov 2018 08:41:27 +0100

> Looking at the doc of last-repeatable-command I think we should clarify
> what we mean by "input event".  The docstring says:
>
>      Last command that may be repeated.
>      The last command executed that was not bound to an input event.
>      This is the command ‘repeat’ will try to repeat.
>      Taken from a previous value of ‘real-this-command’.
>
> and the manual says:
>
>      This variable stores the most recently executed command that was not
>      part of an input event.  This is the command @code{repeat} will try to
>      repeat, @xref{Repeating,,, emacs, The GNU Emacs Manual}.
>
> but according to the source code, this variable holds the last command
> that was run via a "simple" event such as a keyboard key rather than
> a "complex" event like a mouse click (the test is simply CONSP).
>
> Do we somewhere define "input event" to mean an event with parameters?
> I thought keyboard keys are also "input events".

IIRC this was to avoid repeating commands like 'handle-switch-frame'.
How should we verbally distinguish such commands from the ones we want
to consider repeatable?

martin




reply via email to

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