unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Toby Cubitt <toby-predictive-dated-1327924137.9ab140@dr-qubit.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 10459@debbugs.gnu.org
Subject: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer
Date: Mon, 16 Jan 2012 12:48:11 +0100	[thread overview]
Message-ID: <20120116114811.GA20689@c3po> (raw)
In-Reply-To: <jwvwr91fsed.fsf-monnier+emacs@gnu.org>

On Sun, Jan 08, 2012 at 10:52:54PM -0500, Stefan Monnier wrote:
> Yes, this is a known limitation: the set of active keymaps is computed
> before waiting for the next key sequence.
> 
> You might be able to get around this problem by pushing some dummy event
> (which you then bind to `ignore' in some keymap) onto
> unread-command-event from your timer, just to force a refresh.

I've tested this, and it does indeed work. Thanks Stefan.

At the moment, for the dummy event, I'm using a keyboard event for an
unlikely unicode character with every modifier set. Is there some better
choice than this?

Toby
-- 
Dr T. S. Cubitt
Mathematics and Quantum Information group
Department of Mathematics
Complutense University
Madrid, Spain

email: tsc25@cantab.net
web:   www.dr-qubit.org





  reply	other threads:[~2012-01-16 11:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-08 15:14 bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer Toby Cubitt
2012-01-09  3:52 ` Stefan Monnier
2012-01-16 11:48   ` Toby Cubitt [this message]
2012-01-16 14:34     ` Stefan Monnier
2014-10-05  1:21     ` Dmitry Gutov

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=20120116114811.GA20689@c3po \
    --to=toby-predictive-dated-1327924137.9ab140@dr-qubit.org \
    --cc=10459@debbugs.gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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).