From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#41021: [PATCH] New command apropos-function Date: Sat, 2 May 2020 12:40:06 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000080811105a4a7ec81" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="13577"; mail-complaints-to="usenet@ciao.gmane.io" To: 41021@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 02 12:45:16 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 1jUpdy-0003O3-UW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 May 2020 12:45:15 +0200 Original-Received: from localhost ([::1]:34576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUpdy-0006n2-0D for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 May 2020 06:45:14 -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 1jUpdp-0006lJ-HI for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 06:45:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUpdo-000312-RU for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 06:45:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUpdo-000301-ED for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 06:45:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jUpdn-0004uj-CO for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 06:45:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 May 2020 10:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41021 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158841627218818 (code B ref -1); Sat, 02 May 2020 10:45:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 May 2020 10:44:32 +0000 Original-Received: from localhost ([127.0.0.1]:51350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUpd3-0004tD-0d for submit@debbugs.gnu.org; Sat, 02 May 2020 06:44:32 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUpcm-0004sA-N5 for submit@debbugs.gnu.org; Sat, 02 May 2020 06:44:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUpck-0005q3-M3 for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 06:44:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUpZD-0001Cz-SS for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 06:43:58 -0400 Original-Received: from mail-yb1-f180.google.com ([209.85.219.180]:37479) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUpZD-0001C3-55 for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 06:40:19 -0400 Original-Received: by mail-yb1-f180.google.com with SMTP id f5so50204ybo.4 for ; Sat, 02 May 2020 03:40:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=j5AF8Q5spTYasy7Uwa+Sfg9r3MbIUHrwXQIVgaOBZ5o=; b=MiS9HE5vJlH9iaMJ5QsVrjdWqVx1iCi2PN0vOvlQti3KbOFxwwC8wLSUS/y5t1D15v LYZLARt7X+aOTMuYwKSsJnZXmL8inyWHAMnGTUZsW90QrQ4c3QYraCDUSIB/b8grxVXS lpdmdjKh+rbsNhsDFCBIyzaQ+XmgdRhHjXMUOMvyL/Ji3kgRJ/S7cvDvGRnkk48vEBhs pfsIogzrYL0byzy4qzDekxS5IOYDPwmP0PkmsBywr9VJyBSs9UZGrTHqgIVEjJnjBB65 PAoCbZT05h1bU9T+7//DkhU50K5FX2wtPDw9q2GcZQLNycwW4pb4qqp+43XYVT0I81Zd E/CQ== X-Gm-Message-State: AGi0PuZyLipaCBxTdWf7kSXmw/TgxFX0asRIqHl2oF45qDU9eg4TM/Og zDS5VGdJBu3phMXp1bpci0TSXifzExSVD+fdFaeReKEI X-Google-Smtp-Source: APiQypIlckOfGWa0J/aU5E/V5v2k/L2LcXYv8oIFSpKHcK7Yw8JlOlTCyoy+V258+M8/jKnLcACUL9wvcwx2fNlYNPE= X-Received: by 2002:a5b:4cf:: with SMTP id u15mr1099920ybp.43.1588416017874; Sat, 02 May 2020 03:40:17 -0700 (PDT) Received-SPF: pass client-ip=209.85.219.180; envelope-from=stefankangas@gmail.com; helo=mail-yb1-f180.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/02 06:40:18 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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:179492 Archived-At: --00000000000080811105a4a7ec81 Content-Type: multipart/alternative; boundary="00000000000080810f05a4a7ec7f" --00000000000080810f05a4a7ec7f Content-Type: text/plain; charset="UTF-8" Severity: wishlist I've often found myself reaching for 'apropos-function' command, and found it strange that it was missing. This typically would happen by saying M-x apropos- TAB. So now I got frustrated again and I decided to bite the bullet and implement it. Of course, I quickly realized that I had actually been looking for 'C-u M-x apropos-command' all along. But for some reason I never thought to read the docstring of 'apropos-command'. (Or maybe I read it at some point but forgot about it.) I think a new command would help make this feature more discoverable, especially to beginners. Please see the attached patch. Best regards, Stefan Kangas --00000000000080810f05a4a7ec7f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Severity: wishlist

I'= ;ve often found myself reaching for 'apropos-function' command, and= found it strange that it was missing.=C2=A0 This typically would happen by= saying M-x apropos- TAB.=C2=A0 So now I got frustrated again and I decided= to bite the bullet and implement it.

Of course, I= quickly realized that I had actually been looking for 'C-u M-x apropos= -command' all along.=C2=A0 But for some reason I never thought to read = the docstring of 'apropos-command'.=C2=A0 (Or maybe I read it at so= me point but forgot about it.)

I think a new c= ommand would help make this feature more discoverable, especially to beginn= ers.=C2=A0 Please see the attached patch.

Best= regards,
Stefan Kangas

--00000000000080810f05a4a7ec7f-- --00000000000080811105a4a7ec81 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-lisp-apropos.el-apropos-function-New-command.patch" Content-Disposition: attachment; filename="0001-lisp-apropos.el-apropos-function-New-command.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k9phndva0 RnJvbSA4OTYyNmRkOGJhNDI0ZGVkY2E2ODYyYWYyYjk2ZGExZjZhMzBmODI3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5rYW5nYXNAZ21haWwuY29t PgpEYXRlOiBTYXQsIDIgTWF5IDIwMjAgMTI6Mjk6MTMgKzAyMDAKU3ViamVjdDogW1BBVENIXSAq IGxpc3AvYXByb3Bvcy5lbCAoYXByb3Bvcy1mdW5jdGlvbik6IE5ldyBjb21tYW5kLgoKLS0tCiBs aXNwL2Fwcm9wb3MuZWwgfCAxNCArKysrKysrKysrKysrKwogMSBmaWxlIGNoYW5nZWQsIDE0IGlu c2VydGlvbnMoKykKCmRpZmYgLS1naXQgYS9saXNwL2Fwcm9wb3MuZWwgYi9saXNwL2Fwcm9wb3Mu ZWwKaW5kZXggZTQwZjk0Y2NiOC4uMTAwM2RlOGFhYiAxMDA2NDQKLS0tIGEvbGlzcC9hcHJvcG9z LmVsCisrKyBiL2xpc3AvYXByb3Bvcy5lbApAQCAtNTM0LDYgKzUzNCwyMCBAQCBhcHJvcG9zLWxv Y2FsLXZhcmlhYmxlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoYW5kIChsb2Nh bC12YXJpYWJsZS1pZi1zZXQtcCBzeW1ib2wpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIChnZXQgc3ltYm9sICd2YXJpYWJsZS1kb2N1bWVudGF0aW9uKSkpKSkKIAorOzs7 IyMjYXV0b2xvYWQKKyhkZWZ1biBhcHJvcG9zLWZ1bmN0aW9uIChwYXR0ZXJuKQorICAiU2hvdyBm dW5jdGlvbnMgdGhhdCBtYXRjaCBQQVRURVJOLgorCitQQVRURVJOIGNhbiBiZSBhIHdvcmQsIGEg bGlzdCBvZiB3b3Jkcy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