From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#41021: [PATCH] New command apropos-function Date: Sat, 2 May 2020 13:18:16 -0700 (PDT) Message-ID: <603ebaa3-3014-4f98-9e1b-a89eeebee6af@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="62310"; mail-complaints-to="usenet@ciao.gmane.io" To: Stefan Kangas , 41021@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 02 22:21:11 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 1jUydL-000G4h-9w for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 May 2020 22:21:11 +0200 Original-Received: from localhost ([::1]:48006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUydJ-0000hZ-VK for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 May 2020 16:21:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUydC-0000hF-VO for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 16:21:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUydC-0003pq-Aa for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 16:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUydB-0003pl-UY for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 16:21:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jUydB-0003MJ-Q5 for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 16:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 May 2020 20:21:01 +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.158845082812854 (code B ref 41021); Sat, 02 May 2020 20:21:01 +0000 Original-Received: (at 41021) by debbugs.gnu.org; 2 May 2020 20:20:28 +0000 Original-Received: from localhost ([127.0.0.1]:53998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUyce-0003LF-GV for submit@debbugs.gnu.org; Sat, 02 May 2020 16:20:28 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:45516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUycc-0003L1-SY for 41021@debbugs.gnu.org; Sat, 02 May 2020 16:20:27 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 042KJ5SZ045424; Sat, 2 May 2020 20:20:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=prZy1h0jWbIY41KMag4B3Iot63T/L76TFkH2b3nInWo=; b=EU27YC6i97lFooRJ+RmtaVpCjI2XSNMw51NUkKJa8A9qwCFjH4NF57lqBULbXc0+fltD 5xa8yhwilAAYs1A0pqAfPpzjKmeHm+DXNgYTpKVB05iE0IBsbvq+KMCPOGdEQU0OoG7C /xYctp6YtZM7zTKyjY8QqsL0qKvhwUWPgjxtviCGPhajvbXfHAKa+Kf1jMNtCE68ZDfY WGTgnF2t2Hsv0J+r6ZiG8HmhiNyF76txxRAl3gZW2/DUDD1Dg5cWYUVYCStrzsOCVyat CJslBokLY48RVAAfyuShW2tlTAnd5HciI4gwhLzdd2zClKPGmkB9jQhRw7mhJyFVgMUA 8w== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 30s0tm1re0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 02 May 2020 20:20:19 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 042KHZBY187550; Sat, 2 May 2020 20:18:19 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 30rwysnx23-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 02 May 2020 20:18:18 +0000 Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 042KIHho015222; Sat, 2 May 2020 20:18:18 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9609 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 phishscore=0 malwarescore=0 spamscore=0 adultscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005020178 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9609 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 suspectscore=0 phishscore=0 clxscore=1011 bulkscore=0 mlxlogscore=999 adultscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005020178 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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:179540 Archived-At: FWIW, this has been in my library `apropos-fn+var.el' since 2005. The file header includes this: ;; Acknowledgment: Slightly different versions of `apropos-function' ;; and `apropos-variable' were posted by Kevin Rodgers to ;; bug-gnu-emacs, Tue, 06 Sep 2005 14:34:54 -0600. Kevin didn't ;; actually redefine `apropos-variable' (he would never do that ;-)), ;; but he provided the new definition. I redefined `apropos-print' ;; (and added button type `apropos-user-option' for Emacs < 24.4). 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))) https://www.emacswiki.org/emacs/download/apropos-fn%2bvar.el