help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: repeatable vs. non-repeatable commands


From: Michael Heerdegen
Subject: Re: repeatable vs. non-repeatable commands
Date: Mon, 26 Jun 2017 15:49:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Emanuel Berg <moasen@zoho.com> writes:

> Should `C-o d' echo just one "d"?

Yes.

> How does Emacs know when the keystroke is terminated?  Some timeout?

No.  I implement this with transient maps (see `set-transient-map').  In
the simplest case, you can use them to make commands repeatable - see
"repeat.el", or the example in

  https://lists.gnu.org/archive/html/help-gnu-emacs/2017-04/msg00159.html

In the general case, what the user conceives as keystroke is terminated
when you enter a key (sequence) that can't be found in the transient map
- but this is even programmable (via the first optional argument of
`set-transient-map').


Michael.



reply via email to

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