From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#29399: 26.0.90; `edit-kbd-macro' has bad prompt Date: Wed, 22 Nov 2017 19:13:38 -0500 Message-ID: <87y3mxzwb1.fsf@users.sourceforge.net> References: <4fea6ba6-0003-4422-97d6-51098197b1eb@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511396051 32543 195.159.176.226 (23 Nov 2017 00:14:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Nov 2017 00:14:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 29399@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 23 01:14:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHf9Y-00085j-R6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Nov 2017 01:14:05 +0100 Original-Received: from localhost ([::1]:41814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHf9f-0005GW-PI for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Nov 2017 19:14:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHf9a-0005GR-D8 for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2017 19:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHf9W-0002gv-Cx for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2017 19:14:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44533) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eHf9W-0002gi-9D for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2017 19:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eHf9V-0005MI-UH for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2017 19:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Nov 2017 00:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29399-submit@debbugs.gnu.org id=B29399.151139603220576 (code B ref 29399); Thu, 23 Nov 2017 00:14:01 +0000 Original-Received: (at 29399) by debbugs.gnu.org; 23 Nov 2017 00:13:52 +0000 Original-Received: from localhost ([127.0.0.1]:53214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHf9H-0005Lh-Nh for submit@debbugs.gnu.org; Wed, 22 Nov 2017 19:13:52 -0500 Original-Received: from mail-it0-f42.google.com ([209.85.214.42]:38411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHf9G-0005LT-G6 for 29399@debbugs.gnu.org; Wed, 22 Nov 2017 19:13:46 -0500 Original-Received: by mail-it0-f42.google.com with SMTP id n134so8379248itg.3 for <29399@debbugs.gnu.org>; Wed, 22 Nov 2017 16:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=n7IsjhWhSEFLW27WFG302+ExlMowgfhigXGLDJgzIn8=; b=g72pD3PpFdPXZ/N8YUDfdRaR2oYoPsck+WVvPOH4bEV3oDDMFMXTgLyv7IxN4OqbY3 hSXr/cwA8KDxQk5jEN7I+Bb1sWR7DQznrx3SxKjGkEk9P29tfBwfUNUwIPJGck4NUQ5U VB4GmWweneV3aIMLUqJFkqt+mJeUpiu9tXGnjC0pe+a53osBID1Ro87povOGCG+LPPQX aQ6taN4E9YLH9bUHMtfp0O08M23jX+ZO/xGl7hY5ZbPHawyuSmOGlpum/rG0htRrO55N BAgciEB5VQ/chS4MBwUHegnjqCmBz7FHnKNl2J2UnDXlhlETrqFEOJ9FBrZ69ThXKzwG 1UCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=n7IsjhWhSEFLW27WFG302+ExlMowgfhigXGLDJgzIn8=; b=IVm7Qgc0OIx3RhVfzYfuzLBOLRzunGhCZKEyDMUc3SwSP59kqzlb1NZ7C2syyFyGjH iEV2uAlLp2UWD/rUjiE483EsT0tuAAth7IO8GH/WW9JeOh9CQZLwmAaACvxBRO2HMNSH Su1+rJTyCGgJ863m0bAUt+hB9PLOs8sktU4BNEXJCLFx+bZJfXDtluXBJxoEUuTOChy9 SYuHhle6sX7i1sAUTYAFcVh0NpWHUG3qMyjwprplmCK5DGTZ4QbuTQsppT8orDLQC8L3 gp0uYQadwHj9s3mXsPIafIVCxEyQMQG+1aLW4J3WUxYXTCIlYow5H2wFS9kLfQ9eeFCu 2Cqw== X-Gm-Message-State: AJaThX6nO9tmd2ERMWNefj66W1/FCw9Dx+ybPWeORSYTrQUtmW38I18m Kz+jegS757L9kx98FRaQbjyTsw== X-Google-Smtp-Source: AGs4zMaiGZwZiYcIM0+YJmdkAvq8srwrn1NR87DiqD+X0NKr0Za4ABR5G5+To36RYtX2ziqNobLM+g== X-Received: by 10.36.28.81 with SMTP id c78mr9215691itc.96.1511396020641; Wed, 22 Nov 2017 16:13:40 -0800 (PST) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 23sm2587726itj.15.2017.11.22.16.13.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Nov 2017 16:13:39 -0800 (PST) In-Reply-To: <4fea6ba6-0003-4422-97d6-51098197b1eb@default> (Drew Adams's message of "Wed, 22 Nov 2017 08:27:23 -0800 (PST)") 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" Xref: news.gmane.org gmane.emacs.bugs:140256 Archived-At: Drew Adams writes: > emacs -Q > > C-x ( C-f C-f C-f C-x ) > > M-: (global-set-key (kbd "C-o") 'execute-extended-command) > M-: (global-set-key (kbd "M-x") 'forward-char) > > C-o edit-kbd-macro RET > > The prompt says: > > "Keyboard macro to edit (C-x e, M-x, C-h l, or keys):" > > It should use \\[execute-extended-command] and thus say: > > "Keyboard macro to edit (C-x e, C-o, C-h l, or keys):" > > This prompt is anyway not clear. The command should instead accept > a key sequence that shows more complete info/help, and the prompt should > just mention that key sequence. I'm not sure if this would help so much for the OP's case [1], which is more like: (defun my/execute-extended-command () ; actually `smex'[2] in OP's case (interactive) (call-interactively 'execute-extended-command)) (global-set-key (kbd "M-x") 'my/execute-extended-command) With that kind of config, I get Keyboard macro to edit (C-x e, , C-h l, or keys): I have no idea how to produce on my keyboard. If also do (define-key global-map [execute] 'ignore) I get Keyboard macro to edit (C-x e, , C-h l, or keys): which I know is the "Menu key" [3]. But personally, I disable the key also, because otherwise I sometimes accidentally lean on it, producing deeply nested minibuffer prompt which is annoying. (define-key global-map [menu] 'ignore) Which ends up with this: "Keyboard macro to edit (C-x e, M-x execute-extended-command, C-h l, or keys):" [1]: https://emacs.stackexchange.com/questions/37017/unable-to-supply-macro-name-to-edit-kbd-macro-when-m-x-is-bound-to-smex [2]: https://github.com/nonsequitur/smex [3]: https://en.wikipedia.org/wiki/Menu_key