From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mihai Bazon Newsgroups: gmane.emacs.bugs Subject: bug#4093: Overlay keymap and timers Date: Sun, 9 Aug 2009 16:49:30 +0300 Message-ID: <680d89b1d020330a6cb4001845e1e5fb@bazon.net> Reply-To: Mihai Bazon , 4093@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249850316 2168 80.91.229.12 (9 Aug 2009 20:38:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Aug 2009 20:38:36 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 09 22:38:26 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MaF9q-0001kI-5e for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Aug 2009 22:38:22 +0200 Original-Received: from localhost ([127.0.0.1]:43410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaF9p-0006us-Mi for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Aug 2009 16:38:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ma938-0002gy-LM for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 10:07:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ma933-0002fI-Ru for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 10:07:02 -0400 Original-Received: from [199.232.76.173] (port=39755 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ma933-0002fD-NU for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 10:06:57 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47700) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ma932-0008Gq-E3 for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 10:06:57 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n79E6m2N005019; Sun, 9 Aug 2009 07:06:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n79E04Cu003519; Sun, 9 Aug 2009 07:00:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Mihai Bazon Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 09 Aug 2009 14:00:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4093 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12498259942942 (code B ref -1); Sun, 09 Aug 2009 14:00:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 9 Aug 2009 13:53:14 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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 Original-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 Original-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 Original-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 Original-Received: by v1.dynarch.com (Postfix, from userid 5001) id 8E16A1DCC61; Sun, 9 Aug 2009 16:49:31 +0300 (EEST) Original-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) Original-Received: (nullmailer pid 1698 invoked by uid 65534); Sun, 09 Aug 2009 13:49:30 -0000 Content-Disposition: inline X-Mailer: XUHEKI - Dynarch.com WebMail 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 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 09 Aug 2009 10:07:02 -0400 X-Mailman-Approved-At: Sun, 09 Aug 2009 16:37:21 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30025 Archived-At: 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=