unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: 4093@emacsbugs.donarmstrong.com, Mihai Bazon <mihai@bazon.net>
Subject: bug#4093: Overlay keymap and timers
Date: Mon, 10 Aug 2009 13:38:09 -0400	[thread overview]
Message-ID: <jwv4osfzi4e.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <e01d8a50908100930p6c5d32f3q9cb95d4be91d6012@mail.gmail.com> (Lennart Borgman's message of "Mon, 10 Aug 2009 18:30:27 +0200")

>> But maybe an alternative is to provide some way for your Elisp code to
>> cause a jump back to `replay_sequence' so that you can force the C-c C-d
>> to be interpreted in the new keymaps even if the C-c had already been
>> pressed when your code was run.
> Sounds good.  Would it perhaps be most easy to implement
> a `please-replay-sequence' function that tells the command loop to go
> one more turn and check the keymaps again and reuse the pending input?

That function couldn't do much more than set a variable and return.
So yes, it could be done and would have the advantage of making it
possible to keep the variable hidden from Elisp.  Not sure if that
advantage is of any significance, tho.


        Stefan





  reply	other threads:[~2009-08-10 17:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-09 13:49 bug#4093: Overlay keymap and timers Mihai Bazon
2009-08-09 20:56 ` Lennart Borgman
2009-08-09 21:23   ` Mihai Bazon
2009-08-10  4:06   ` Stefan Monnier
2009-08-10  6:55     ` Mihai Bazon
2009-08-10 16:25       ` Stefan Monnier
2009-08-10 16:30         ` Lennart Borgman
2009-08-10 17:38           ` Stefan Monnier [this message]
2009-08-10 17:42             ` Lennart Borgman
2009-08-10 18:17               ` Stefan Monnier
2009-08-10 18:32                 ` Lennart Borgman
2009-08-10 18:26         ` Mihai Bazon
2009-08-11 16:49         ` Mihai Bazon
2009-08-13 17:33           ` Stefan Monnier
2009-08-13 17:49             ` Mihai Bazon

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwv4osfzi4e.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=4093@emacsbugs.donarmstrong.com \
    --cc=lennart.borgman@gmail.com \
    --cc=mihai@bazon.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).