From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#31807: 27.0; `info-apropos' bad name or bad matching Date: Tue, 12 Jun 2018 16:21:22 -0700 (PDT) Message-ID: References: <78156de2-86c8-4593-92b5-59edf7a8996e@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1528845614 24638 195.159.176.226 (12 Jun 2018 23:20:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2018 23:20:14 +0000 (UTC) To: 31807@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 13 01:20:10 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSsa6-0006Dk-Ft for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jun 2018 01:20:06 +0200 Original-Received: from localhost ([::1]:58830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSscB-0002zj-Gl for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 19:22:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSsc2-0002zP-05 for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 19:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSsby-0001cs-1O for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 19:22:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37617) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSsbx-0001cl-Rq for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 19:22:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fSsbx-0007HA-Ir for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 19:22: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: Tue, 12 Jun 2018 23:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31807-submit@debbugs.gnu.org id=B31807.152884569427935 (code B ref 31807); Tue, 12 Jun 2018 23:22:01 +0000 Original-Received: (at 31807) by debbugs.gnu.org; 12 Jun 2018 23:21:34 +0000 Original-Received: from localhost ([127.0.0.1]:45514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSsbV-0007GV-L7 for submit@debbugs.gnu.org; Tue, 12 Jun 2018 19:21:33 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:56772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSsbT-0007GH-H3 for 31807@debbugs.gnu.org; Tue, 12 Jun 2018 19:21:31 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5CNKmjP168801 for <31807@debbugs.gnu.org>; Tue, 12 Jun 2018 23:21:25 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-2017-10-26; bh=yTykuNtCaDMBemcMZXlcQhGLPftUrKCDyRfhZ9dZ95A=; b=M2/S13DWiyEi+x/cxX0dBU7wiDonyQXX9Gyp6ShA+dG0qDuuOog4s/bRDlpGFpA2MjUr dlOwHdPsiGLmZKOVOSwMW9mumuoI1kU5NNoNcgHY2CQBJKKb3LULRa7VqaWwhWAM4i8b QUIZ3eWKZUMl68g5+EZstVSTLfLDlJ0ekp89Z5AEvPi/PpGP+1381CkqoX9sWhXmVQl9 doYC0BqbXc7JQnqai0RBwHxw53q/eI2tjv/2e7qf3Xr16sRS/y+VoZaqOgPIHDtDRzRV T68302pQR+gjKsRillAHbCL2pt0dTGG7YdYDAnpzqrI0V8JLkYxncRIDoY/eulyO6aX9 1g== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2jjp6br6r6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <31807@debbugs.gnu.org>; Tue, 12 Jun 2018 23:21:25 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w5CNLOtL004673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <31807@debbugs.gnu.org>; Tue, 12 Jun 2018 23:21:24 GMT Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w5CNLN7U001241 for <31807@debbugs.gnu.org>; Tue, 12 Jun 2018 23:21:24 GMT In-Reply-To: <78156de2-86c8-4593-92b5-59edf7a8996e@default> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4690.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8922 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=13 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806120258 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147346 Archived-At: I threw this together quickly, as a POC. It does the job, but probably we can do even better. (The doc string would at least need to be beefed up, to describe the input and search behavior.) (defun info-apropos (pattern) "Grovel indices of all known Info files on your system for apropos PATTER= N. Build a menu of the possible matches." (interactive (list (apropos-read-pattern "index entries"))) (apropos-parse-pattern pattern) (if (equal apropos-regexp "") (Info-find-node Info-apropos-file "Top") (let ((nodes Info-apropos-nodes) nodename) (while (and nodes (not (string-match apropos-regexp (nth 1 (car node= s))))) (setq nodes (cdr nodes))) (if nodes (Info-find-node Info-apropos-file (caar nodes)) (setq nodename (format "Index for '%s'" apropos-regexp)) (push (list nodename apropos-regexp (Info-apropos-matches apropos-r= egexp)) Info-apropos-nodes) (Info-find-node Info-apropos-file nodename))))) BTW, should the name be `Info-apropos' or `info-apropos'?