From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3938: 23.0.96; regression: minibuffer-message interferes with C-u Date: Sun, 26 Jul 2009 16:30:44 -0700 Message-ID: Reply-To: Drew Adams , 3938@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248651476 29828 80.91.229.12 (26 Jul 2009 23:37:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jul 2009 23:37:56 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 27 01:37:49 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 1MVDHk-0007lI-Rm for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jul 2009 01:37:45 +0200 Original-Received: from localhost ([127.0.0.1]:42732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVDHk-0004y5-AR for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Jul 2009 19:37:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVDHf-0004y0-2v for bug-gnu-emacs@gnu.org; Sun, 26 Jul 2009 19:37:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVDHZ-0004vH-CD for bug-gnu-emacs@gnu.org; Sun, 26 Jul 2009 19:37:37 -0400 Original-Received: from [199.232.76.173] (port=45156 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVDHZ-0004vB-A3 for bug-gnu-emacs@gnu.org; Sun, 26 Jul 2009 19:37:33 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:50614) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVDHY-0005oc-Ug for bug-gnu-emacs@gnu.org; Sun, 26 Jul 2009 19:37:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVDHX-0007DT-VA for bug-gnu-emacs@gnu.org; Sun, 26 Jul 2009 19:37:32 -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 n6QNbU1H011711; Sun, 26 Jul 2009 16:37:30 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6QNZ56H011076; Sun, 26 Jul 2009 16:35:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 26 Jul 2009 23:35:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3938 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124865104210531 (code B ref -1); Sun, 26 Jul 2009 23:35:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 26 Jul 2009 23:30:42 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6QNUbBO010518 for ; Sun, 26 Jul 2009 16:30:38 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:35699) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MVDAq-0008UN-JV for emacs-pretest-bug@gnu.org; Sun, 26 Jul 2009 19:30:36 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MVDAo-0003wR-Vw for emacs-pretest-bug@gnu.org; Sun, 26 Jul 2009 19:30:36 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:50150) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVDAo-0003w5-9d for emacs-pretest-bug@gnu.org; Sun, 26 Jul 2009 19:30:34 -0400 Original-Received: from acsinet11.oracle.com ([141.146.126.233]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVDAm-0006pU-Rn for emacs-pretest-bug@gnu.org; Sun, 26 Jul 2009 19:30:33 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6QNUlfh028919 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 26 Jul 2009 23:30:48 GMT Original-Received: from abhmt008.oracle.com (abhmt008.oracle.com [141.146.116.17]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6QNUdKa029554 for ; Sun, 26 Jul 2009 23:30:39 GMT Original-Received: from dradamslap1 (/141.144.232.119) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 26 Jul 2009 16:30:27 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AcoOSRjW6imYTDf+S9qS78CueeQ0Pg== X-Source-IP: abhmt008.oracle.com [141.146.116.17] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010206.4A6CE714.00DE:SCFSTAT5015188,ss=1,fgs=0 X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Sun, 26 Jul 2009 19:37:37 -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:29642 gmane.emacs.pretest.bugs:24849 Archived-At: emacs -Q Eval these: (defun test-univ-arg () (interactive) (setq prefix-arg (list 4) universal-argument-num-events (length (this-command-keys))) (minibuffer-message "FOO") ; NO GOOD. OK ONLY IF THIS IS REMOVED (ensure-overriding-map-is-bound)) (defun test2 () (interactive) (describe-function '+)) (define-key minibuffer-local-completion-map "\C-f" 'test2) (define-key minibuffer-local-completion-map (vector 'remap 'universal-argument) 'test-univ-arg) Note that the definition of `test-univ-arg' is identical to the definition of `universal-argument', except for the addition of the call to `minibuffer-message'. 1. Now do this, without waiting for the 2-sec delay after C-u. That is, hit C-f immediately after C-u. M-x C-u C-f 2. Now do `M-x C-u C-f' again, this time waiting for the delay, so the minibuffer message `FOO' is no longer displayed, before hitting `C-f'. #2 has the correct behavior: the input event `C-f' interrupts the minibuffer message and immediately executes the `C-f' command (the particular command used is immaterial; I use `describe-function' just to easily see whether it is executed). In Emacs 23, #1 has this incorrect effect: After C-u, the minibuffer message FOO is erased, but the `C-f' is not picked up. You must repeat `C-f' a second time, to get it to be picked up. Note that if you hit C-f twice even very quickly, then the second `C-f' is picked up (but not the first). IOW, the problem doesn't seem to be that the delay has not passed. It seems to be that only the first input event is ignored if the delay has not expired. It's hard to hit C-f twice quickly, so I'm not certain about this, but it seems to be the case. In Emacs prior to Emacs 23, #1 also had the correct behavior of #2. IOW, this is a regression. In GNU Emacs 23.0.96.1 (i386-mingw-nt5.1.2600) of 2009-07-09 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)'