all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: repeatable vs. non-repeatable commands
Date: Mon, 26 Jun 2017 15:49:26 +0200	[thread overview]
Message-ID: <87vaniuae1.fsf@drachen> (raw)
In-Reply-To: <8660fkrrl4.fsf@zoho.com> (Emanuel Berg's message of "Sun, 25 Jun 2017 17:53:59 +0200")

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	other threads:[~2017-06-26 13:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-24  6:17 repeatable vs. non-repeatable commands Michael Heerdegen
2017-06-24 10:01 ` Emanuel Berg
2017-06-25  4:56   ` Michael Heerdegen
2017-06-25 15:53     ` Emanuel Berg
2017-06-26 13:49       ` Michael Heerdegen [this message]
2017-06-24 10:22 ` Emanuel Berg
2017-06-25  4:59   ` Michael Heerdegen
2017-06-25 16:22     ` Emanuel Berg
2017-06-24 13:23 ` Stefan Monnier
2017-06-26 15:31   ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vaniuae1.fsf@drachen \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.