From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#4093: Overlay keymap and timers Date: Sun, 9 Aug 2009 22:56:45 +0200 Message-ID: References: <680d89b1d020330a6cb4001845e1e5fb@bazon.net> Reply-To: Lennart Borgman , 4093@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249852030 6349 80.91.229.12 (9 Aug 2009 21:07:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Aug 2009 21:07:10 +0000 (UTC) To: Mihai Bazon , 4093@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 09 23:07:03 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 1MaFbZ-0001um-Sd for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Aug 2009 23:07:02 +0200 Original-Received: from localhost ([127.0.0.1]:56965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaFbZ-0000UM-BB for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Aug 2009 17:07:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaFbU-0000UA-MO for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 17:06:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaFbP-0000SX-93 for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 17:06:55 -0400 Original-Received: from [199.232.76.173] (port=40933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaFbP-0000SS-4R for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 17:06:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52640) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MaFbO-0000RM-Jy for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2009 17:06:50 -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 n79L6mbt016400; Sun, 9 Aug 2009 14:06:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n79L544L015708; Sun, 9 Aug 2009 14:05:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Lennart Borgman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 09 Aug 2009 21:05:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4093 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4093-submit@emacsbugs.donarmstrong.com id=B4093.124985141214855 (code B ref 4093); Sun, 09 Aug 2009 21:05:04 +0000 Original-Received: (at 4093) by emacsbugs.donarmstrong.com; 9 Aug 2009 20:56:52 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-yw0-f175.google.com (mail-yw0-f175.google.com [209.85.211.175]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n79Kuow4014845 for <4093@emacsbugs.donarmstrong.com>; Sun, 9 Aug 2009 13:56:51 -0700 Original-Received: by ywh5 with SMTP id 5so3476232ywh.13 for <4093@emacsbugs.donarmstrong.com>; Sun, 09 Aug 2009 13:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=mXz/HO7BQFnR54YvjPdsv1s2WA5uOGEGBrFZOlcpk1E=; b=PUMVBuubN0dOzC5mauvty2vCcWPFh95aG5ksdBbn6DaGUKOOAgOcqf8W2QmoQbXks0 5zYubD6klSjupju3rsRV+tRBP3Co27EuYFgfE66ZVDUJlasOC+jKwTsT3HqGwQ79sm45 dRo94sjbH0a7501bIsStzHnBF6ixnIoyADtz4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=f/q23ADLx4nj5nQPvtgicmOm4PTRIdtTATnRJKRsFfJUXpe/uep9kUfJWt4xiiFz67 He0Rhygs6NUcr9IjtSbWVVXh0qEszfdAOJZdM2kbYUSAmcxDI/qjZesJT9QcoigBUDFG z/VAo/RbDl8vexmtBtCoH5+N3EVlqcbi+qgd0= Original-Received: by 10.100.8.4 with SMTP id 4mr2670554anh.146.1249851405079; Sun, 09 Aug 2009 13:56:45 -0700 (PDT) In-Reply-To: <680d89b1d020330a6cb4001845e1e5fb@bazon.net> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 09 Aug 2009 17:06:55 -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:30028 Archived-At: Yes, this is a really bad thing - sometimes, ie when you need to do just th= at. Is there any fundamental difficulty with fixing this? On Sun, Aug 9, 2009 at 3:49 PM, Mihai Bazon wrote: > Actually, it seems it hasn't anything to do with overlays: > > (defun my-set-keymap-with-timer () > =C2=A0(interactive) > =C2=A0(run-with-timer 0.5 nil (lambda() > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0(use-local-map my-keymap) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0(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: > > =C2=A0 http://www.mail-archive.com/emacs-pretest-bug@gnu.org/msg12003.htm= l > > Stallman says "we should consider that a serious problem". ;-)