From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Toby Cubitt Newsgroups: gmane.emacs.bugs 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 Message-ID: <20120116114811.GA20689@c3po> References: <20120108145806.GA26632@c3po> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1326742769 19305 80.91.229.12 (16 Jan 2012 19:39:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2012 19:39:29 +0000 (UTC) Cc: 10459@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 16 20:39:24 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RmsOq-0002Gl-7F for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jan 2012 20:39:24 +0100 Original-Received: from localhost ([::1]:60872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmsOp-0004nL-8e for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jan 2012 14:39:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmsOZ-0004ml-J8 for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2012 14:39:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmsOY-0007iS-Ah for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2012 14:39:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmsOY-0007iO-5R for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2012 14:39:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RmsPR-00077A-Nx for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2012 14:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Toby Cubitt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jan 2012 19:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10459 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10459-submit@debbugs.gnu.org id=B10459.132674274827270 (code B ref 10459); Mon, 16 Jan 2012 19:40:01 +0000 Original-Received: (at 10459) by debbugs.gnu.org; 16 Jan 2012 19:39:08 +0000 Original-Received: from localhost ([127.0.0.1]:60638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmsOY-00075l-PA for submit@debbugs.gnu.org; Mon, 16 Jan 2012 14:39:08 -0500 Original-Received: from sanddollar.geekisp.com ([216.168.135.167]:28808) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rml4S-0003YW-6r for 10459@debbugs.gnu.org; Mon, 16 Jan 2012 06:49:53 -0500 Original-Received: (qmail 10926 invoked by uid 1003); 16 Jan 2012 11:48:57 -0000 Original-Received: from localhost (localhost.geekisp.com [127.0.0.1]) by localhost.geekisp.com (tmda-ofmipd) with ESMTP; Mon, 16 Jan 2012 06:48:55 -0500 Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.dr-qubit.org/gpg-toby.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) X-Primary-Address: toby@dr-qubit.org X-Mailman-Approved-At: Mon, 16 Jan 2012 14:39:05 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Mon, 16 Jan 2012 14:39:22 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55802 Archived-At: 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