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:27:33 -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="24932"; 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:28:24 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 1lDiEC-0006Mi-Ix for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 07:28:24 +0100 Original-Received: from localhost ([::1]:46550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDiEB-0001PR-K3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 01:28:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDiDr-0001IU-Kg for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 01:28:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41869) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDiDr-0002PA-DD for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 01:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lDiDr-0002y1-8m for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 01:28:03 -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:28:03 +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.161388886211349 (code B ref 46627); Sun, 21 Feb 2021 06:28:03 +0000 Original-Received: (at 46627) by debbugs.gnu.org; 21 Feb 2021 06:27:42 +0000 Original-Received: from localhost ([127.0.0.1]:53410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDiDW-0002wz-8y for submit@debbugs.gnu.org; Sun, 21 Feb 2021 01:27:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDiDT-0002wl-Uo for 46627@debbugs.gnu.org; Sun, 21 Feb 2021 01:27:40 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58440) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDiDO-00028i-Pa; Sun, 21 Feb 2021 01:27:34 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1lDiDN-0006ir-Si; Sun, 21 Feb 2021 01:27:34 -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:200476 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)