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: Sun, 8 Jan 2012 16:14:54 +0100 Message-ID: <20120108145806.GA26632@c3po> Reply-To: Toby Cubitt NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1326070202 20305 80.91.229.12 (9 Jan 2012 00:50:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2012 00:50:02 +0000 (UTC) To: 10459@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 09 01:49:59 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 1Rk3Qz-0003VX-An for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jan 2012 01:49:57 +0100 Original-Received: from localhost ([::1]:39615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk3Qy-00014d-W1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jan 2012 19:49:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk3Qv-00014X-O1 for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 19:49:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rk3Qu-0001Fd-HI for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 19:49:53 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk3Qu-0001FZ-Ea for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 19:49:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rk3R4-00066x-PF for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 19:50:02 -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, 09 Jan 2012 00:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10459 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132607019023464 (code B ref -1); Mon, 09 Jan 2012 00:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jan 2012 00:49:50 +0000 Original-Received: from localhost ([127.0.0.1]:50479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rk3Qq-00066O-PQ for submit@debbugs.gnu.org; Sun, 08 Jan 2012 19:49:49 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35441) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rk2Iu-0004OZ-Kj for submit@debbugs.gnu.org; Sun, 08 Jan 2012 18:37:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rk2Id-0000j4-Rn for submit@debbugs.gnu.org; Sun, 08 Jan 2012 18:37:17 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:41528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk2Id-0000j0-QJ for submit@debbugs.gnu.org; Sun, 08 Jan 2012 18:37:15 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk2Id-0003gQ-4e for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 18:37:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rk2Ic-0000ic-7s for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 18:37:15 -0500 Original-Received: from starfish.geekisp.com ([216.168.135.166]:20084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk2Ic-0000iY-2f for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 18:37:14 -0500 Original-Received: (qmail 27092 invoked by uid 1003); 8 Jan 2012 23:37:12 -0000 Original-Received: from localhost (localhost.geekisp.com [127.0.0.1]) by localhost.geekisp.com (tmda-ofmipd) with ESMTP; Sun, 08 Jan 2012 18:37:10 -0500 Content-Disposition: inline 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-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sun, 08 Jan 2012 19:49:47 -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-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:55555 Archived-At: Emacs versions known to be affected: ------------------------------------ 23.2.1, 24 (recent bzr checkout). Steps to reproduce: ------------------- 1. Define the following function: (defun test () (interactive) (run-with-timer 2 nil (lambda () (setq overlay (make-overlay 4 8)) (overlay-put overlay 'face '(background-color . "black")) (let ((map (make-sparse-keymap))) (overlay-put overlay 'keymap map) (define-key map "t" (lambda () (interactive) (message "overlay keymap binding"))))))) 2. Position point somewhere between 4 and 8. 3. M-x test 4. type "t" (*without* moving point first) Expected output: ---------------- Overlay keymap binding should display the message "overlay keymap binding". Actual output: -------------- Default `self-insert-command' binding inserts character "t" into the buffer. Additional information: ----------------------- Note that moving the point, e.g. one character to the right and then back, in between septs 3. and 4. seems to activate the overlay keymap binding, so that typing "t" in step 4. displays the correct message. -- Dr T. S. Cubitt Mathematics and Quantum Information group Department of Mathematics Complutense University Madrid, Spain