From unknown Thu Aug 14 22:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer 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: To: 10459@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: Toby Cubitt Received: via spool by submit@debbugs.gnu.org id=B.132607019023464 (code B ref -1); Mon, 09 Jan 2012 00:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jan 2012 00:49:50 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12 autolearn=no version=3.3.2 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 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 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 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 Received: (qmail 27092 invoked by uid 1003); 8 Jan 2012 23:37:12 -0000 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 Date: Sun, 8 Jan 2012 16:14:54 +0100 Message-ID: <20120108145806.GA26632@c3po> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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) From: Toby Cubitt 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-Received-From: 140.186.70.17 X-Spam-Score: -1.9 (-) 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) 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 From unknown Thu Aug 14 22:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jan 2012 03:54: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: To: Toby Cubitt Cc: 10459@debbugs.gnu.org Received: via spool by 10459-submit@debbugs.gnu.org id=B10459.13260812066875 (code B ref 10459); Mon, 09 Jan 2012 03:54:01 +0000 Received: (at 10459) by debbugs.gnu.org; 9 Jan 2012 03:53:26 +0000 Received: from localhost ([127.0.0.1]:50505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rk6IX-0001mp-1Y for submit@debbugs.gnu.org; Sun, 08 Jan 2012 22:53:26 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:57670) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rk6IG-0001mP-U3 for 10459@debbugs.gnu.org; Sun, 08 Jan 2012 22:53:22 -0500 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q093qtK7010956; Sun, 8 Jan 2012 22:52:55 -0500 Received: by pastel.home (Postfix, from userid 20848) id E9C2358F7E; Sun, 8 Jan 2012 22:52:54 -0500 (EST) From: Stefan Monnier Message-ID: References: <20120108145806.GA26632@c3po> Date: Sun, 08 Jan 2012 22:52:54 -0500 In-Reply-To: <20120108145806.GA26632@c3po> (Toby Cubitt's message of "Sun, 8 Jan 2012 16:14:54 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV4095=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4095> : streams <718030> : uri <1043323> X-Spam-Score: -3.5 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) 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. Stefan From unknown Thu Aug 14 22:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jan 2012 14:36:02 +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: To: Toby Cubitt Cc: 10459@debbugs.gnu.org Received: via spool by 10459-submit@debbugs.gnu.org id=B10459.132672455131963 (code B ref 10459); Mon, 16 Jan 2012 14:36:02 +0000 Received: (at 10459) by debbugs.gnu.org; 16 Jan 2012 14:35:51 +0000 Received: from localhost ([127.0.0.1]:59912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rmnf5-0008JU-B0 for submit@debbugs.gnu.org; Mon, 16 Jan 2012 09:35:51 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183]:13074) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rmnf1-0008JJ-MY for 10459@debbugs.gnu.org; Mon, 16 Jan 2012 09:35:48 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EANYyFE9FxKkV/2dsb2JhbABDrCyBCoEGgXIBAQQBViMFCwsOJhIUGA0kiA21WIldAgEBCAIMEQMJAQEGAQUeCgQBAgEBAgECAQIBAQEBAoJ4AQYCAwcBBAEBAQELAgcBAwMNAQIDAQEDAgMFBAWDRwSIO5pjhFI X-IronPort-AV: E=Sophos;i="4.71,518,1320642000"; d="scan'208";a="156990362" Received: from 69-196-169-21.dsl.teksavvy.com (HELO ceviche.home) ([69.196.169.21]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 16 Jan 2012 09:34:52 -0500 Received: by ceviche.home (Postfix, from userid 20848) id D49BE6610D; Mon, 16 Jan 2012 09:34:51 -0500 (EST) From: Stefan Monnier Message-ID: References: <20120116114811.GA20689@c3po> Date: Mon, 16 Jan 2012 09:34:51 -0500 In-Reply-To: <20120116114811.GA20689@c3po> (Toby Cubitt's message of "Mon, 16 Jan 2012 12:48:11 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > I've tested this, and it does indeed work. Thanks Stefan. Cool. It's an ugly hack, but for now it's the best I can offer ;-( > 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? Use a symbol like `toby-cubitt-dummy-event'. Stefan From unknown Thu Aug 14 22:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer References: <20120108145806.GA26632@c3po> 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: To: Stefan Monnier Cc: 10459@debbugs.gnu.org Received: via spool by 10459-submit@debbugs.gnu.org id=B10459.132674274827270 (code B ref 10459); Mon, 16 Jan 2012 19:40:01 +0000 Received: (at 10459) by debbugs.gnu.org; 16 Jan 2012 19:39:08 +0000 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 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 Received: (qmail 10926 invoked by uid 1003); 16 Jan 2012 11:48:57 -0000 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 Date: Mon, 16 Jan 2012 12:48:11 +0100 Message-ID: <20120116114811.GA20689@c3po> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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) From: Toby Cubitt X-Primary-Address: toby@dr-qubit.org X-Spam-Score: -0.4 (/) 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.4 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 25 15:04:19 2012 Received: (at control) by debbugs.gnu.org; 25 Mar 2012 19:04:19 +0000 Received: from localhost ([127.0.0.1]:38551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SBsji-0001NE-G2 for submit@debbugs.gnu.org; Sun, 25 Mar 2012 15:04:18 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:35847) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SBsjg-0001N5-Lv for control@debbugs.gnu.org; Sun, 25 Mar 2012 15:04:17 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SBsFa-0004C0-UX for control@debbugs.gnu.org; Sun, 25 Mar 2012 14:33:11 -0400 Date: Sun, 25 Mar 2012 14:33:10 -0400 Message-Id: Subject: control message for bug 10459 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) merge 4081 10459 From unknown Thu Aug 14 22:23:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Toby Cubitt Subject: bug#10459: closed (Re: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer) Message-ID: References: <86zjdb8g6i.fsf@yandex.ru> <20120108145806.GA26632@c3po> X-Gnu-PR-Message: they-closed 10459 X-Gnu-PR-Package: emacs Reply-To: 10459@debbugs.gnu.org Date: Sun, 05 Oct 2014 01:22:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1412472123-6034-1" This is a multi-part message in MIME format... ------------=_1412472123-6034-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #10459: Overlay keymaps ignored until point is moved when overlay is create= d from timer which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 10459@debbugs.gnu.org. --=20 10459: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10459 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1412472123-6034-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 10459-done) by debbugs.gnu.org; 5 Oct 2014 01:21:31 +0000 Received: from localhost ([127.0.0.1]:33344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaaVu-0001Yd-Fx for submit@debbugs.gnu.org; Sat, 04 Oct 2014 21:21:30 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:49582) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaaVs-0001YU-0G for 10459-done@debbugs.gnu.org; Sat, 04 Oct 2014 21:21:28 -0400 Received: by mail-lb0-f178.google.com with SMTP id w7so2730294lbi.9 for <10459-done@debbugs.gnu.org>; Sat, 04 Oct 2014 18:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=vs9Dtxe7d9plKbLNJ40/Twgh8SiRl7ynnfQHyldOnN4=; b=RCgIvT5Zz91Z5rhWksixanvbfxqhlVAwbvtsfExaOtSzhntIuqHNSfs/DJflfT7HLv Ltfp9DYE2xCfAQNYhgb0qh5bPlgB0y0gwkwk1bb3Y7mwA7lp/Fje9Ysem1ljRK4iaEQk 5ag/y0N1g77mBcXFRM5utr2aZQ5Ngre0eQWRu6WfjIC7gBRC+kkdisWYUok0lW905alK xjQYl8/adU0ta6lOudPhwfVFHXQt1N3YISPF/DC6ERIOsZPH+SaFgHzXivKG9EyaAbKo GH0TL57noF0361iOqVXqLbjNqECJPbko0vBvC8QPHYa49pjN+zvRj7JqPTYtD9SEw8p2 by6w== X-Received: by 10.112.235.199 with SMTP id uo7mr14876277lbc.50.1412472086767; Sat, 04 Oct 2014 18:21:26 -0700 (PDT) Received: from axl ([178.252.98.87]) by mx.google.com with ESMTPSA id c10sm4226347laa.41.2014.10.04.18.21.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 04 Oct 2014 18:21:26 -0700 (PDT) From: Dmitry Gutov To: Toby Cubitt Subject: Re: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer References: <20120108145806.GA26632@c3po> <20120116114811.GA20689@c3po> Date: Sun, 05 Oct 2014 05:21:25 +0400 In-Reply-To: <20120116114811.GA20689@c3po> (Toby Cubitt's message of "Mon, 16 Jan 2012 12:48:11 +0100") Message-ID: <86zjdb8g6i.fsf@yandex.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 10459-done Cc: 10459-done@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Version: 24.4 > 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. This has been fixed around the start of 24.4 development: the set of keymaps is recomputed at the start of a key sequence. The examples in this and merged bugs work for me now. Please feel free to reopen if you see a case where the problem's not fixed. ------------=_1412472123-6034-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Jan 2012 00:49:50 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12 autolearn=no version=3.3.2 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 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 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 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 Received: (qmail 27092 invoked by uid 1003); 8 Jan 2012 23:37:12 -0000 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 Date: Sun, 8 Jan 2012 16:14:54 +0100 To: bug-gnu-emacs@gnu.org Subject: Overlay keymaps ignored until point is moved when overlay is created from timer Message-ID: <20120108145806.GA26632@c3po> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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) From: Toby Cubitt 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-Received-From: 140.186.70.17 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: submit 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 Reply-To: Toby Cubitt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) 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 ------------=_1412472123-6034-1-- From unknown Thu Aug 14 22:23:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mihai Bazon Subject: bug#4081: closed (Re: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer) Message-ID: References: <86zjdb8g6i.fsf@yandex.ru> <3404e64848e91742a2a6e2e51ca8a285@bazon.net> X-Gnu-PR-Message: they-closed 4081 X-Gnu-PR-Package: emacs Reply-To: 4081@debbugs.gnu.org Date: Sun, 05 Oct 2014 01:22:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1412472124-6034-3" This is a multi-part message in MIME format... ------------=_1412472124-6034-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #10459: Overlay keymap and timers which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 4081@debbugs.gnu.org. --=20 10459: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10459 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1412472124-6034-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 10459-done) by debbugs.gnu.org; 5 Oct 2014 01:21:31 +0000 Received: from localhost ([127.0.0.1]:33344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaaVu-0001Yd-Fx for submit@debbugs.gnu.org; Sat, 04 Oct 2014 21:21:30 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:49582) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaaVs-0001YU-0G for 10459-done@debbugs.gnu.org; Sat, 04 Oct 2014 21:21:28 -0400 Received: by mail-lb0-f178.google.com with SMTP id w7so2730294lbi.9 for <10459-done@debbugs.gnu.org>; Sat, 04 Oct 2014 18:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=vs9Dtxe7d9plKbLNJ40/Twgh8SiRl7ynnfQHyldOnN4=; b=RCgIvT5Zz91Z5rhWksixanvbfxqhlVAwbvtsfExaOtSzhntIuqHNSfs/DJflfT7HLv Ltfp9DYE2xCfAQNYhgb0qh5bPlgB0y0gwkwk1bb3Y7mwA7lp/Fje9Ysem1ljRK4iaEQk 5ag/y0N1g77mBcXFRM5utr2aZQ5Ngre0eQWRu6WfjIC7gBRC+kkdisWYUok0lW905alK xjQYl8/adU0ta6lOudPhwfVFHXQt1N3YISPF/DC6ERIOsZPH+SaFgHzXivKG9EyaAbKo GH0TL57noF0361iOqVXqLbjNqECJPbko0vBvC8QPHYa49pjN+zvRj7JqPTYtD9SEw8p2 by6w== X-Received: by 10.112.235.199 with SMTP id uo7mr14876277lbc.50.1412472086767; Sat, 04 Oct 2014 18:21:26 -0700 (PDT) Received: from axl ([178.252.98.87]) by mx.google.com with ESMTPSA id c10sm4226347laa.41.2014.10.04.18.21.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 04 Oct 2014 18:21:26 -0700 (PDT) From: Dmitry Gutov To: Toby Cubitt Subject: Re: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer References: <20120108145806.GA26632@c3po> <20120116114811.GA20689@c3po> Date: Sun, 05 Oct 2014 05:21:25 +0400 In-Reply-To: <20120116114811.GA20689@c3po> (Toby Cubitt's message of "Mon, 16 Jan 2012 12:48:11 +0100") Message-ID: <86zjdb8g6i.fsf@yandex.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 10459-done Cc: 10459-done@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Version: 24.4 > 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. This has been fixed around the start of 24.4 development: the set of keymaps is recomputed at the start of a key sequence. The examples in this and merged bugs work for me now. Please feel free to reopen if you see a case where the problem's not fixed. ------------=_1412472124-6034-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 8 Aug 2009 09:46:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n789k2sN008808 for ; Sat, 8 Aug 2009 02:46:04 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZiUz-0000y0-Gv for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2009 05:46:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZiUy-0000xi-D8 for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2009 05:46:00 -0400 Received: from [199.232.76.173] (port=50551 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZiUx-0000xa-Vl for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2009 05:46:00 -0400 Received: from mx20.gnu.org ([199.232.41.8]:5873) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MZiUx-00020X-6m for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2009 05:45:59 -0400 Received: from ip-72-55-183-145.static.privatedns.com ([72.55.183.145] helo=v1.dynarch.com) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZiUv-0007kN-Jl for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2009 05:45:57 -0400 Received: by v1.dynarch.com (Postfix, from userid 5001) id BFBF01D80002; Sat, 8 Aug 2009 12:24:53 +0300 (EEST) Received: from v3.dynarch.com (ip-72-55-183-147.static.privatedns.com [72.55.183.147]) by v1.dynarch.com (Postfix) with SMTP id AEAEB1DCC5D for ; Sat, 8 Aug 2009 12:24:51 +0300 (EEST) Received: (nullmailer pid 23120 invoked by uid 65534); Sat, 08 Aug 2009 09:24:51 -0000 MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF8" Date: Sat, 8 Aug 2009 12:24:51 +0300 Subject: Overlay keymap and timers To: bug-gnu-emacs@gnu.org From: Mihai Bazon X-Mailer: XUHEKI - Dynarch.com WebMail Message-Id: <3404e64848e91742a2a6e2e51ca8a285@bazon.net> X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Hi folks, I identified a possible bug, just wondering if there's a known workaround. Please CC me in any reply as I'm not subscribed to the list. Short description =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D When creating overlays in a function called by run-with-timer, their keymap becomes available only *after* some key has been pressed. Sample code =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq counter 0) (setq my-keymap (make-sparse-keymap)) (define-key my-keymap (kbd "M-n")=20 (lambda() (interactive) (message "Got it %s!" (setq counter (+ counter 1))))) =20=20=20=20 (defun my-highlight () (interactive) (save-excursion (beginning-of-buffer) (while (search-forward-regexp "\\" nil t) (let ((overlay (make-overlay (- (point) 7) (point)))) (overlay-put overlay 'face 'highlight) (overlay-put overlay 'evaporate t) ;; using 'local-map doesn't make any difference (overlay-put overlay 'keymap my-keymap) (overlay-put overlay 'my-property t))))) =20=20=20=20 (defun my-highlight-with-timer () (interactive) (run-with-timer 0.5 nil 'my-highlight)) =20=20=20=20 (defun my-highlight-clear () (interactive) (remove-overlays (point-min) (point-max) 'my-property t)) Eval this code, then type "overlay" in some buffer and move the caret somewhere in the middle of the word. * Case 1. M-x my-highlight. The word gets colored. If you press M-n, it will display "Got it 1!" in the minibuffer -- works as expected. Now clear it with M-x my-highlight-clear. * Case 2. M-x my-highlight-with-timer. After half a second, the word gets colored. If we immediately press M-n now, we get "M-n is=20 undefined". However, pressing M-n a second time works. Clear it again with my-highlight-clear. * Case 3. M-x my-highlight-with-timer, then press some key such as C-f (make sure the cursor doesn't leave the overlay). Then pressing M-n works as expected. My guess is that the keymap becomes active the moment a key is released (?) (or in some post-command-hook?) and the cursor is within the overlay. So if set without a timer, it gets a chance to be activated straight away, but with a timer there isn't any key release to trigger it so it becomes active only after some key has been pressed. Not sure if this is a bug, but it's sure annoying and I've no idea how to work around it. Any help is appreciated. Cheers, -Mihai= ------------=_1412472124-6034-3-- From unknown Thu Aug 14 22:23:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mihai Bazon Subject: bug#4093: closed (Re: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer) Message-ID: References: <86zjdb8g6i.fsf@yandex.ru> <680d89b1d020330a6cb4001845e1e5fb@bazon.net> X-Gnu-PR-Message: they-closed 4093 X-Gnu-PR-Package: emacs Reply-To: 4093@debbugs.gnu.org Date: Sun, 05 Oct 2014 01:22:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1412472125-6034-5" This is a multi-part message in MIME format... ------------=_1412472125-6034-5 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #10459: Overlay keymap and timers which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 4093@debbugs.gnu.org. --=20 10459: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10459 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1412472125-6034-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 10459-done) by debbugs.gnu.org; 5 Oct 2014 01:21:31 +0000 Received: from localhost ([127.0.0.1]:33344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaaVu-0001Yd-Fx for submit@debbugs.gnu.org; Sat, 04 Oct 2014 21:21:30 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:49582) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaaVs-0001YU-0G for 10459-done@debbugs.gnu.org; Sat, 04 Oct 2014 21:21:28 -0400 Received: by mail-lb0-f178.google.com with SMTP id w7so2730294lbi.9 for <10459-done@debbugs.gnu.org>; Sat, 04 Oct 2014 18:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=vs9Dtxe7d9plKbLNJ40/Twgh8SiRl7ynnfQHyldOnN4=; b=RCgIvT5Zz91Z5rhWksixanvbfxqhlVAwbvtsfExaOtSzhntIuqHNSfs/DJflfT7HLv Ltfp9DYE2xCfAQNYhgb0qh5bPlgB0y0gwkwk1bb3Y7mwA7lp/Fje9Ysem1ljRK4iaEQk 5ag/y0N1g77mBcXFRM5utr2aZQ5Ngre0eQWRu6WfjIC7gBRC+kkdisWYUok0lW905alK xjQYl8/adU0ta6lOudPhwfVFHXQt1N3YISPF/DC6ERIOsZPH+SaFgHzXivKG9EyaAbKo GH0TL57noF0361iOqVXqLbjNqECJPbko0vBvC8QPHYa49pjN+zvRj7JqPTYtD9SEw8p2 by6w== X-Received: by 10.112.235.199 with SMTP id uo7mr14876277lbc.50.1412472086767; Sat, 04 Oct 2014 18:21:26 -0700 (PDT) Received: from axl ([178.252.98.87]) by mx.google.com with ESMTPSA id c10sm4226347laa.41.2014.10.04.18.21.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 04 Oct 2014 18:21:26 -0700 (PDT) From: Dmitry Gutov To: Toby Cubitt Subject: Re: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer References: <20120108145806.GA26632@c3po> <20120116114811.GA20689@c3po> Date: Sun, 05 Oct 2014 05:21:25 +0400 In-Reply-To: <20120116114811.GA20689@c3po> (Toby Cubitt's message of "Mon, 16 Jan 2012 12:48:11 +0100") Message-ID: <86zjdb8g6i.fsf@yandex.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 10459-done Cc: 10459-done@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Version: 24.4 > 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. This has been fixed around the start of 24.4 development: the set of keymaps is recomputed at the start of a key sequence. The examples in this and merged bugs work for me now. Please feel free to reopen if you see a case where the problem's not fixed. ------------=_1412472125-6034-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 9 Aug 2009 13:53:14 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n79DrCRT002939 for ; Sun, 9 Aug 2009 06:53:13 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ma8pk-0004Vl-0g for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 09:53:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ma8pj-0004VX-3E for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 09:53:11 -0400 Received: from [199.232.76.173] (port=56322 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ma8pi-0004VS-Vw for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 09:53:11 -0400 Received: from ip-72-55-183-145.static.privatedns.com ([72.55.183.145]:41142 helo=v1.dynarch.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ma8pi-0006Gd-M3 for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 09:53:10 -0400 Received: by v1.dynarch.com (Postfix, from userid 5001) id 8E16A1DCC61; Sun, 9 Aug 2009 16:49:31 +0300 (EEST) Received: from v3.dynarch.com (ip-72-55-183-147.static.privatedns.com [72.55.183.147]) by v1.dynarch.com (Postfix) with SMTP id E2D8C1DCC5D for ; Sun, 9 Aug 2009 16:49:30 +0300 (EEST) Received: (nullmailer pid 1698 invoked by uid 65534); Sun, 09 Aug 2009 13:49:30 -0000 MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF8" Date: Sun, 9 Aug 2009 16:49:30 +0300 Subject: Overlay keymap and timers To: bug-gnu-emacs@gnu.org From: Mihai Bazon X-Mailer: XUHEKI - Dynarch.com WebMail Message-Id: <680d89b1d020330a6cb4001845e1e5fb@bazon.net> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Greylist: delayed 102278 seconds by postgrey-1.27 at monty-python; Sun, 09 Aug 2009 09:53:10 EDT Actually, it seems it hasn't anything to do with overlays: (defun my-set-keymap-with-timer () (interactive) (run-with-timer 0.5 nil (lambda() (use-local-map my-keymap) (message "Done setting keymap")))) If we eval the following and M-x my-set-keymap-with-timer, the keymap will only be enforced after the first keypress (i.e. first press of M-n says "M-n is undefined", but subsequently it works). Found another thread about this issue here: http://www.mail-archive.com/emacs-pretest-bug@gnu.org/msg12003.html Stallman says "we should consider that a serious problem". ;-) Cheers, -Mihai= ------------=_1412472125-6034-5-- From unknown Thu Aug 14 22:23:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Leo Subject: bug#11088: closed (Re: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer) Message-ID: References: <86zjdb8g6i.fsf@yandex.ru> X-Gnu-PR-Message: they-closed 11088 X-Gnu-PR-Package: emacs Reply-To: 11088@debbugs.gnu.org Date: Sun, 05 Oct 2014 01:22:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1412472126-6034-7" This is a multi-part message in MIME format... ------------=_1412472126-6034-7 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #10459: 24.0.94; minor mode cannot be cleanly turned off in idle timer which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11088@debbugs.gnu.org. --=20 10459: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10459 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1412472126-6034-7 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 10459-done) by debbugs.gnu.org; 5 Oct 2014 01:21:31 +0000 Received: from localhost ([127.0.0.1]:33344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaaVu-0001Yd-Fx for submit@debbugs.gnu.org; Sat, 04 Oct 2014 21:21:30 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:49582) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaaVs-0001YU-0G for 10459-done@debbugs.gnu.org; Sat, 04 Oct 2014 21:21:28 -0400 Received: by mail-lb0-f178.google.com with SMTP id w7so2730294lbi.9 for <10459-done@debbugs.gnu.org>; Sat, 04 Oct 2014 18:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=vs9Dtxe7d9plKbLNJ40/Twgh8SiRl7ynnfQHyldOnN4=; b=RCgIvT5Zz91Z5rhWksixanvbfxqhlVAwbvtsfExaOtSzhntIuqHNSfs/DJflfT7HLv Ltfp9DYE2xCfAQNYhgb0qh5bPlgB0y0gwkwk1bb3Y7mwA7lp/Fje9Ysem1ljRK4iaEQk 5ag/y0N1g77mBcXFRM5utr2aZQ5Ngre0eQWRu6WfjIC7gBRC+kkdisWYUok0lW905alK xjQYl8/adU0ta6lOudPhwfVFHXQt1N3YISPF/DC6ERIOsZPH+SaFgHzXivKG9EyaAbKo GH0TL57noF0361iOqVXqLbjNqECJPbko0vBvC8QPHYa49pjN+zvRj7JqPTYtD9SEw8p2 by6w== X-Received: by 10.112.235.199 with SMTP id uo7mr14876277lbc.50.1412472086767; Sat, 04 Oct 2014 18:21:26 -0700 (PDT) Received: from axl ([178.252.98.87]) by mx.google.com with ESMTPSA id c10sm4226347laa.41.2014.10.04.18.21.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 04 Oct 2014 18:21:26 -0700 (PDT) From: Dmitry Gutov To: Toby Cubitt Subject: Re: bug#10459: Overlay keymaps ignored until point is moved when overlay is created from timer References: <20120108145806.GA26632@c3po> <20120116114811.GA20689@c3po> Date: Sun, 05 Oct 2014 05:21:25 +0400 In-Reply-To: <20120116114811.GA20689@c3po> (Toby Cubitt's message of "Mon, 16 Jan 2012 12:48:11 +0100") Message-ID: <86zjdb8g6i.fsf@yandex.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 10459-done Cc: 10459-done@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Version: 24.4 > 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. This has been fixed around the start of 24.4 development: the set of keymaps is recomputed at the start of a key sequence. The examples in this and merged bugs work for me now. Please feel free to reopen if you see a case where the problem's not fixed. ------------=_1412472126-6034-7 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Mar 2012 15:03:47 +0000 Received: from localhost ([127.0.0.1]:38377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SBoyx-000482-7e for submit@debbugs.gnu.org; Sun, 25 Mar 2012 11:03:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54951) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SBoyh-00047h-2I for submit@debbugs.gnu.org; Sun, 25 Mar 2012 11:03:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBoUb-000716-8r for submit@debbugs.gnu.org; Sun, 25 Mar 2012 10:32:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:39206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBoUb-00070f-2Y for submit@debbugs.gnu.org; Sun, 25 Mar 2012 10:32:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBoUX-0007M3-Jv for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2012 10:32:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBoUV-0006vx-Qy for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2012 10:32:21 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:61211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBoUV-0006qF-JM for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2012 10:32:19 -0400 Received: by iajr24 with SMTP id r24so8527814iaj.0 for ; Sun, 25 Mar 2012 07:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:x-debbugs-cc:date:message-id:mime-version :content-type; bh=5x6Nm3KKmOS/jq/4V+fdXGWmpC6JoRCIZw2bbqXuc40=; b=ZyRGjdMW0x2bdjPj+Y6iyW2kkC0GatweewmZIiUauu3CpM/vW+G3JBh56tqZQBeuyB JEpdAAaNU+hlwr/pwViG4GdBQ+5sF1ke6U5fR6+0g4GtcBRQfYi3hnQEtv8tb6NajBEy 37WbpPQAeTUWJ34SFf6z5eBI9kgWYQP+1U6zpBAGPNJedY9P97pIPlkkcgYuA2QS55ms Q6R6RzDzig4AdxS2OX7IKtb6uZJRLltzwje0KhvoQBrxOmk9tDWnEYJbwhYS/mi47/mi B4AcN1ie+M6ccORuHOGZMFSSUGaIfiTJNmHzv/Py19sLDSlT+n6VV8jLImJlG/KyG4sA G6Vg== Received: by 10.50.88.165 with SMTP id bh5mr2927581igb.50.1332685936890; Sun, 25 Mar 2012 07:32:16 -0700 (PDT) Received: from localhost ([123.114.33.24]) by mx.google.com with ESMTPS id us6sm8036605igc.9.2012.03.25.07.32.11 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Mar 2012 07:32:15 -0700 (PDT) From: Leo To: bug-gnu-emacs@gnu.org Subject: 24.0.94; minor mode cannot be cleanly turned off in idle timer X-Debbugs-CC: Chong Yidong , Stefan Monnier Date: Sun, 25 Mar 2012 22:32:03 +0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Received-From: 208.118.235.17 X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --=-=-= Content-Type: text/plain 1. emacs -q -l t.el 2. C-c w 3. let emacs idle for more than 2 seconds 4. type `l' You should still see the message "hello world" printed, which is odd since I expect the minor mode turned off by now. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=t.el Content-Transfer-Encoding: quoted-printable Content-Description: t.el (defvar test-mode-map (let ((map (make-sparse-keymap))) (define-key map "l" (lambda () (interactive) (message "Hello World"))) map)) (define-minor-mode test-mode "" :global t (if test-mode (run-with-idle-timer 2 nil 'test-mode -1))) (global-set-key "\C-cw" 'test-mode) --=-=-=-- ------------=_1412472126-6034-7--