From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23129: 25.1.50; Prefix key is not echoed during minibuffer completion Date: Mon, 28 Mar 2016 18:21:26 +0300 Message-ID: <83shzay6fd.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1459178605 1754 80.91.229.3 (28 Mar 2016 15:23:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Mar 2016 15:23:25 +0000 (UTC) Cc: 23129@debbugs.gnu.org To: Drew Adams , Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 28 17:23:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1akZ0Y-000284-Lc for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Mar 2016 17:23:10 +0200 Original-Received: from localhost ([::1]:41302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akZ0X-0002dc-JA for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Mar 2016 11:23:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akZ0T-0002cB-Iz for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2016 11:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akZ0Q-00068e-CR for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2016 11:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akZ0Q-00068Y-8M for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2016 11:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1akZ0Q-00036o-48 for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2016 11:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Mar 2016 15:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23129 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23129-submit@debbugs.gnu.org id=B23129.145917852511864 (code B ref 23129); Mon, 28 Mar 2016 15:23:02 +0000 Original-Received: (at 23129) by debbugs.gnu.org; 28 Mar 2016 15:22:05 +0000 Original-Received: from localhost ([127.0.0.1]:42193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akYzV-00035I-Kk for submit@debbugs.gnu.org; Mon, 28 Mar 2016 11:22:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akYzU-00034p-Bd for 23129@debbugs.gnu.org; Mon, 28 Mar 2016 11:22:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akYzM-0005op-2S for 23129@debbugs.gnu.org; Mon, 28 Mar 2016 11:21:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akYzM-0005ok-03; Mon, 28 Mar 2016 11:21:56 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4703 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1akYzB-0002Lq-9L; Mon, 28 Mar 2016 11:21:45 -0400 In-reply-to: (message from Drew Adams on Sun, 27 Mar 2016 15:34:02 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115648 Archived-At: > Date: Sun, 27 Mar 2016 15:34:02 -0700 (PDT) > From: Drew Adams > > 0. emacs -Q > > 1. > (defvar bar-map nil) > (define-prefix-command 'bar-map) > (define-key minibuffer-local-must-match-map "\M-i" 'bar-map) > (define-key bar-map "\M-z" 'foo) > (defun foo () (interactive) (message "FOOOOOOOOOOO") (sleep-for 2)) > > `M-x M-i' > Wait a second. The prefix key `M-i' is NOT echoed. > `M-z' > The message from `foo' is shown. > > 2. > (global-set-key "\M-l" 'bar-map) > > `M-l' > Wait a second. The prefix key `M-l' IS echoed. > `M-z' > The message from `foo' is shown. Is it really necessary to use this complex setup? Does the following simple recipe exhibit the same behavior? (If not, please tell why not.) emacs -Q C-x C-f C-x "C-x C-f" causes the prompt showing the current directory; typing "C-x" afterwards has no visible effect, whereas you expect it to echo the usual "C-x-". Right? > BUG: The prefix key `M-i' should be echoed during completion. How do you mean "should"? AFAICT, this is a deliberate feature: we only echo the prefix keys when there's nothing in the minibuffer (more accurately, when the minibuffer level of recursion is zero). I guess this is so to avoid confusing prompts or something (Richard, can you comment on this?), but in any case this is how Emacs worked since forever.