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: Tue, 16 Feb 2021 17:36:27 +0200 Message-ID: <838s7o9g90.fsf@gnu.org> References: <87v9aubm96.fsf@gnus.org> <83a6s6bkrg.fsf@gnu.org> <87mtw6bkjo.fsf@gnus.org> <838s7qbjn2.fsf@gnu.org> <87eehi820x.fsf@gnus.org> <83v9at9xel.fsf@gnu.org> <87wnv8xlqa.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36629"; 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 Tue Feb 16 16:38:52 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 1lC2R9-0009QK-Ec for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Feb 2021 16:38:51 +0100 Original-Received: from localhost ([::1]:35672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC2R8-0000QG-Hh for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Feb 2021 10:38:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC2Om-0006kE-Ds for emacs-devel@gnu.org; Tue, 16 Feb 2021 10:36:24 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53358) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC2Om-00024Q-3n; Tue, 16 Feb 2021 10:36:24 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2524 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lC2Ok-0005x3-9W; Tue, 16 Feb 2021 10:36:23 -0500 In-Reply-To: <87wnv8xlqa.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 16 Feb 2021 13:04: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:264889 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Tue, 16 Feb 2021 13:04:13 +0100 > > Eli Zaretskii writes: > > > So people are supposed to invoke that new theoretical command only > > when they already know the command is from the current major mode? > > I'm not sure I understand what you mean. > > The question I asked is whether people would find it useful to have an > M-x-like command that only lists commands that are specifically tagged > as being applicable to the current buffer's modes. > > It'd be a different way of getting an over for the mode-specific > commands than `C-h m'. "C-h m" shows the mode's keybindings, and is a "help" command. That "M-x-like command" you are talking about is NOT a help command, it's a command that executes other commands. Thus, to use this new command, the user should know, up front, that he or she wants to _invoke_ some command from the set of those applicable to the current modes. I'm wondering how will users know that. By contrast, "C-h m" is typically invoked when users are looking for information about the current mode, not because they necessarily want to invoke some command. > > I thought you wanted to modify how M-x works. Isn't that what this > > discussion was about? Or is it _only_ about that new command? Or > > both? > > This thread is only about this theoretical new command. Then how about if we stop mentioning M-x in this thread? It is utterly confusing to mention M-x when we actually are talking about something else. Some of the suggestions voiced here made me nervous because I thought people were suggesting changes in how M-x works; now I'm relieved to learn that no change to M-x's MO was meant.