From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41021: [PATCH] New command apropos-function Date: Sun, 03 May 2020 17:19:17 +0300 Message-ID: <834ksxqexm.fsf@gnu.org> References: <603ebaa3-3014-4f98-9e1b-a89eeebee6af@default> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="76261"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41021@debbugs.gnu.org, stefan@marxist.se To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 03 16:20:13 2020 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 1jVFTY-000JlT-Q3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 May 2020 16:20:12 +0200 Original-Received: from localhost ([::1]:58620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVFTX-0001Vy-Mh for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 May 2020 10:20:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVFTP-0001R1-1y for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 10:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVFTO-0001CR-Oo for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 10:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jVFTO-0001w1-Kr for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 10:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 May 2020 14:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41021 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41021-submit@debbugs.gnu.org id=B41021.15885155737395 (code B ref 41021); Sun, 03 May 2020 14:20:02 +0000 Original-Received: (at 41021) by debbugs.gnu.org; 3 May 2020 14:19:33 +0000 Original-Received: from localhost ([127.0.0.1]:57518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVFSv-0001vC-3F for submit@debbugs.gnu.org; Sun, 03 May 2020 10:19:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVFSt-0001v0-TZ for 41021@debbugs.gnu.org; Sun, 03 May 2020 10:19:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53417) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVFSo-00019D-D8; Sun, 03 May 2020 10:19:26 -0400 Original-Received: from [176.228.60.248] (port=4251 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jVFSl-00007I-B9; Sun, 03 May 2020 10:19:23 -0400 In-Reply-To: <603ebaa3-3014-4f98-9e1b-a89eeebee6af@default> (message from Drew Adams on Sat, 2 May 2020 13:18:16 -0700 (PDT)) 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:179587 Archived-At: > Date: Sat, 2 May 2020 13:18:16 -0700 (PDT) > From: Drew Adams > > This is my `apropos-function': > > (defun apropos-function (pattern) > "Show functions that match PATTERN. > This includes functions that are not commands. > PATTERN can be a word, a list of words (separated by spaces), > or a regexp (using some regexp special characters). If it is a word, > search for matches for that word as a substring. If it is a list of words, > search for matches for any two (or more) of those words. > > When called from a Lisp program, a string PATTERN is used as a regexp, > while a list of strings is used as a word list." > (interactive "i") > (if (interactive-p) > (let ((apropos-do-all t)) > (call-interactively 'apropos-command)) > (apropos-command pattern t))) Is this to save the user typing C-u before invoking "C-h a"?