From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#46627: [PATCH] Add new help command 'describe-command' Date: Sun, 21 Feb 2021 01:19:06 -0500 Message-ID: References: Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34029"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46627@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 21 07:20:56 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lDi6x-0008k1-1s for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 07:20:55 +0100 Original-Received: from localhost ([::1]:38220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDi6w-00067b-2H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 01:20:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDi66-0005Nh-Kc for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 01:20:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDi66-000678-DZ for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 01:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lDi66-0002kw-8y for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 01:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Feb 2021 06:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46627 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 46627-submit@debbugs.gnu.org id=B46627.161388835710513 (code B ref 46627); Sun, 21 Feb 2021 06:20:02 +0000 Original-Received: (at 46627) by debbugs.gnu.org; 21 Feb 2021 06:19:17 +0000 Original-Received: from localhost ([127.0.0.1]:53391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDi5M-0002jV-Q0 for submit@debbugs.gnu.org; Sun, 21 Feb 2021 01:19:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDi5L-0002jI-EQ for 46627@debbugs.gnu.org; Sun, 21 Feb 2021 01:19:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58229) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDi5G-0005WY-9k; Sun, 21 Feb 2021 01:19:10 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1lDi5C-0005Q9-Uu; Sun, 21 Feb 2021 01:19:07 -0500 In-Reply-To: (message from Stefan Kangas on Sat, 20 Feb 2021 01:14:01 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200472 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > It would be like `describe-function' but show only commands. Are you perhaps talking about limiting the candidates for completion? If the only difference between these commands is completion of the argument, here's an idea. * Make TAB and ?, when a completion list is displayed, toggle the completion mode between commands-only and all-functions. * Arrange a way to show on the screen which completion mode is in use. Perhaps in the completions list buffer. * Make C-h f start out with completion in commands-only mode. That will be good for beginners. If you want to complete a noninteractive function name, toggle the completion mode. This interface involves no new commands, and no new bindings, and it is easy to discover. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)