From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#5923: 23.1.95; minibuffer-message discards input events Date: Sun, 18 Apr 2010 23:09:31 -0700 Message-ID: References: <6ED90800C89F408BB0C3F86660BB4C10@us.oracle.com><7C90907943E64115BA7CFABFB144BD24@us.oracle.com> <497D764814894831A571BD283D21B9DA@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271658578 20044 80.91.229.12 (19 Apr 2010 06:29:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2010 06:29:38 +0000 (UTC) Cc: 5923@debbugs.gnu.org To: "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 19 08:29:36 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O3kUC-0000I3-CP for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 08:29:36 +0200 Original-Received: from localhost ([127.0.0.1]:40982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3kUB-0008O2-Nt for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 02:29:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3kTt-0008HW-14 for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 02:29:17 -0400 Original-Received: from [140.186.70.92] (port=48706 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3kTp-0008Gw-NM for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 02:29:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3kTn-0004TM-KT for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 02:29:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52366) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3kTn-0004TI-Hs for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 02:29:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O3kCE-000353-C1; Mon, 19 Apr 2010 02:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Apr 2010 06:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5923 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5923-submit@debbugs.gnu.org id=B5923.127165745011834 (code B ref 5923); Mon, 19 Apr 2010 06:11:02 +0000 Original-Received: (at 5923) by debbugs.gnu.org; 19 Apr 2010 06:10:50 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3kC1-00034p-1Z for submit@debbugs.gnu.org; Mon, 19 Apr 2010 02:10:49 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3kBz-00034j-L0 for 5923@debbugs.gnu.org; Mon, 19 Apr 2010 02:10:48 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3J6ASKX003633 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 19 Apr 2010 06:10:41 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3J5tn2D021981; Mon, 19 Apr 2010 06:10:27 GMT Original-Received: from abhmt007.oracle.com by acsmt354.oracle.com with ESMTP id 169742081271657352; Sun, 18 Apr 2010 23:09:12 -0700 Original-Received: from dradamslap1 (/10.175.221.180) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 18 Apr 2010 23:09:11 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AcrbeN6P7ekC4+9VQH619MkvIjLwtAAFxw3wAPw1QPAAAXc+EA== In-Reply-To: <497D764814894831A571BD283D21B9DA@us.oracle.com> X-Auth-Type: Internal IP X-Source-IP: acsinet15.oracle.com [141.146.126.227] X-CT-RefId: str=0001.0A090206.4BCBF3E3.00B5:SCFMA922111,ss=1,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 19 Apr 2010 02:11:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:36299 Archived-At: > > > > Attached is the code I use for `C-u' in the minibuffer. I > > > > hope it helps. > > > > > > It does. > > > > > > But to tell you the truth the handling of this-command-keys and > > > universal-argument prefix is much too delicate for me to > > > understand it, so I'm not surprised it doesn't work quite right > > > if you mess with it in any non-trivial way. > > > > Compare Emacs 22 (and earlier), where there is no bug. > > > > The code was changed (C to Lisp, at least), and that > > introduced the regression. > > Also, the code I use is _identical_ to the original code in > simple.el (Emacs 22 > version), except that it also calls `minibuffer-message'. Is > that really a > "non-trivial" change? > > (And in Emacs 23, `last-command-event' is used instead of > `last-command-char' - that is the only difference I can see > from the Emacs 22 code.) And changing `last-command-char' in the code to `last-command-event', for Emacs 23, does not fix the problem. It seems that the problem was introduced in the translation from C to Lisp for the vanilla Emacs code for `minibuffer-message'. Here is enough of the rest of the code I use to let you execute it and reproduce the bug without doing anything extra: (defun icicle-remap (old new map &optional oldmap) (define-key map (vector 'remap old) new)) (icicle-remap 'universal-argument 'icicle-universal-argument ; `C-u' minibuffer-local-completion-map (current-global-map)) (icicle-remap 'negative-argument 'icicle-negative-argument ; `M--' minibuffer-local-completion-map (current-global-map)) (icicle-remap 'digit-argument 'icicle-digit-argument ; `C-9' minibuffer-local-completion-map (current-global-map)) (defvar icicle-minibuffer-message-ok-p t) Together with the code I sent before, this provides a full test case. It works in Emacs 22 and doesn't work in Emacs 23.