From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.devel Subject: Re: Current mode command discovery Date: Sun, 14 Feb 2021 16:29:02 -0800 Message-ID: References: <87v9aubm96.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="732"; mail-complaints-to="usenet@ciao.gmane.io" To: Lars Ingebrigtsen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 15 01:30:01 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 1lBRm4-000Acn-Pc for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Feb 2021 01:30:00 +0100 Original-Received: from localhost ([::1]:57674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBRm3-0006jr-So for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 19:29:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBRlJ-00063k-3K for emacs-devel@gnu.org; Sun, 14 Feb 2021 19:29:13 -0500 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:34369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBRlG-0000L3-Vl for emacs-devel@gnu.org; Sun, 14 Feb 2021 19:29:12 -0500 X-Originating-IP: 24.113.169.116 Original-Received: from matts-mbp-2016.lan (24-113-169-116.wavecable.com [24.113.169.116]) (Authenticated sender: matt@rfc20.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 3531440002; Mon, 15 Feb 2021 00:29:05 +0000 (UTC) In-Reply-To: <87v9aubm96.fsf@gnus.org> Received-SPF: pass client-ip=217.70.183.194; envelope-from=matt@rfc20.org; helo=relay2-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:264816 Archived-At: Lars Ingebrigtsen writes: > Now that we have mode markup, should there be a command like `M-x', > but instead lists only those commands that are specifically relevant > to the current buffer? > > This would only be commands that have been marked for the current > major mode and any active minor modes, I guess? > > If so, should that be bound to something, and if so, what? Lars, my mail from Wednesday might have nudged you into action on this. Regardless, at the time I said: > Case in point: if a command isn't bound to a key it doesn't show up in > help, so there is this pressure to bind everything that could possibly > be useful to some person some day to some key. What if instead help > showed all the interactive commands provided by the mode? What if M-x > were smarter about highlighting mode specific commands? So, maybe include the list in `describe-mode' output? Or invent a new `describe-extended-commands' command and bind that to C-h ? Like a command line, commands like M-x are great for invoking the commands you know about. Even though I mentioned M-x above, improving help might be a better starting point.