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: Sun, 14 Feb 2021 20:15:45 +0200 Message-ID: <838s7qbjn2.fsf@gnu.org> References: <87v9aubm96.fsf@gnus.org> <83a6s6bkrg.fsf@gnu.org> <87mtw6bkjo.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35578"; 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 Sun Feb 14 19:55:57 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 1lBMYm-00099w-IJ for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 19:55:56 +0100 Original-Received: from localhost ([::1]:57886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBMYl-0007qU-9v for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 13:55:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBLvs-0000Hd-OG for emacs-devel@gnu.org; Sun, 14 Feb 2021 13:15:47 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42565) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBLvs-0006D4-Gn; Sun, 14 Feb 2021 13:15:44 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2197 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lBLvr-000700-AL; Sun, 14 Feb 2021 13:15:44 -0500 In-Reply-To: <87mtw6bkjo.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 14 Feb 2021 18:56:11 +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:264754 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Sun, 14 Feb 2021 18:56:11 +0100 > > Eli Zaretskii writes: > > > Like I said before: instead of removing what seems irrelevant, make > > them appear after the relevant parts. > > That could also be an option, but I think having a command that shows > "now, what are the commands meant for this specific mode" would be nice. > > >> This would only be commands that have been marked for the current major > >> mode and any active minor modes, I guess? > > > > What about primitives? they are relevant in any mode. > > I'm not quite sure what you mean by primitives? I mean: would "the command that shows 'now, what are the commands meant for this specific mode'" also show primitives like transpose-regions? If you are going to only display commands marked for the current major-mode, I guess the answer is NO, and that is IMO sub-optimal, because primitives (and other non mode-specific commands, like find-file) are always relevant.