From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Current mode command discovery Date: Sat, 20 Feb 2021 17:11:54 +0200 Message-ID: <83mtvyzscl.fsf@gnu.org> References: <87v9aubm96.fsf@gnus.org> <87r1laomak.fsf@gnus.org> <83pn0uzubj.fsf@gnu.org> <87im6molnq.fsf@gnus.org> <83o8geztvt.fsf@gnu.org> <871rdaokhi.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40069"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 20 16:12:55 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDTwE-000AKB-TZ for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Feb 2021 16:12:54 +0100 Original-Received: from localhost ([::1]:59508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDTwD-0008FG-VK for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Feb 2021 10:12:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDTvZ-0007nz-Gb for emacs-devel@gnu.org; Sat, 20 Feb 2021 10:12:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45306) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDTvZ-0005oQ-94; Sat, 20 Feb 2021 10:12:13 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1277 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lDTvX-0002o2-CQ; Sat, 20 Feb 2021 10:12:11 -0500 In-Reply-To: <871rdaokhi.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 20 Feb 2021 15:57:13 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265330 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Sat, 20 Feb 2021 15:57:13 +0100 > > ;; This isn't strictly correct if `execute-extended-command' > ;; is bound to anything else (e.g. [menu]). > ;; It could use (key-description (this-single-command-keys)), > ;; but actually a prompt other than "M-x" would be confusing, > ;; because "M-x" is a well-known prompt to read a command > ;; and it serves as a shorthand for "Extended command: ". > "M-x ") > > in `read-extended-command'. Hm. Anybody got an opinion on what the > best fix here would be? The obvious fix is to do what the comment says, > which would also make this be more consistent if the user has rebound > the command. Or you could kludge it by looking at the modifiers.