From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#42753: 26.3; `info-lookup.el': Add all manuals delivered by `emacs -Q', for `emacs-lisp-mode' Date: Fri, 7 Aug 2020 15:20:15 -0700 (PDT) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17486"; mail-complaints-to="usenet@ciao.gmane.io" To: 42753@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 08 00:21:14 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 1k4Ajh-0004SI-Vk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Aug 2020 00:21:14 +0200 Original-Received: from localhost ([::1]:41912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4Ajg-000802-SY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Aug 2020 18:21:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4AjX-0007z0-2u for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2020 18:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46163) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k4AjW-0007gg-PZ for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2020 18:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k4AjW-0001CV-J8 for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2020 18:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Aug 2020 22:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42753 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15968388284547 (code B ref -1); Fri, 07 Aug 2020 22:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Aug 2020 22:20:28 +0000 Original-Received: from localhost ([127.0.0.1]:57709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4Aix-0001BH-N5 for submit@debbugs.gnu.org; Fri, 07 Aug 2020 18:20:28 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4Ait-0001B7-GD for submit@debbugs.gnu.org; Fri, 07 Aug 2020 18:20:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4Ait-0007c6-6x for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2020 18:20:23 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:44178) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4Aiq-0007TS-5Z for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2020 18:20:22 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 077M435G064436 for ; Fri, 7 Aug 2020 22:20:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=kLfeh7T4ZVO2DibjS1X6qMq5Y1Tia8M82Q1cv35lYG4=; b=BK1pSM6IwQEln6n78lem71LSZAvxfQmCt37/1Gjvf/uDG4jagdyJSW5rBeGT6LdgJfUW H+Mee1gfl58iwOf5RU1n5zlvxSTPFO2OCYqAKDVzEQroQbP9tRBm69tbWWzwPfBUvXOE 9YGKvBrhpCKfEsILGobhY++Ct3fRfPV937qHDUkPRlQHJKoFLfBm+kIsqs4dHl6waPfN kZrVQbo1FuB1Y3x3DvQPpXM+WNN+V8/aRDMy/xC7xWWuMfCBd666MB5m3ftScjbUaV5T vMU1yoAUh2UFXbhzUk6trNmhQpIHxCQC6+KV69wH7L4SZoty618mv8hHRQvigYhq7+ls bQ== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 32r6gx2v9b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 07 Aug 2020 22:20:18 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 077Lx4Qs117241 for ; Fri, 7 Aug 2020 22:20:17 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 32pdp1vtdx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 07 Aug 2020 22:20:17 +0000 Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 077MKGsu023326 for ; Fri, 7 Aug 2020 22:20:16 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5017.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9706 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 spamscore=0 mlxscore=0 bulkscore=0 adultscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008070150 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9706 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 spamscore=0 impostorscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 priorityscore=1501 phishscore=0 clxscore=1015 suspectscore=1 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008070150 Received-SPF: pass client-ip=156.151.31.86; envelope-from=drew.adams@oracle.com; helo=userp2130.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/07 16:38:19 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -63 X-Spam_score: -6.4 X-Spam_bar: ------ X-Spam_report: (-6.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:184294 Archived-At: Most of the manuals delivered with Emacs are missing from `info-look.el', for looking up Emacs-Lisp commands, non-interactive functions, options, and other variables. I believe that a fix for this is to replace the :doc-spec value here: (info-lookup-maybe-add-help :mode 'emacs-lisp-mode :regexp "[^][()`''',\" \t\n]+" :doc-spec '(;; Commands with key sequences appear in nodes as `foo' and ;; those without as `M-x foo'. ("(emacs)Command Index" nil "['`']\\(M-x[ \t\n]+\\)?" "['']") ;; Variables normally appear in nodes as just `foo'. ("(emacs)Variable Index" nil "['`']" "['']") ;; Almost all functions, variables, etc appear in nodes as ;; " -- Function: foo" etc. A small number of aliases and ;; symbols appear only as `foo', and will miss out on exact ;; positions. Allowing `foo' would hit too many false matches ;; for things that should go to Function: etc, and those latte= r ;; are much more important. Perhaps this could change if some ;; sort of fallback match scheme existed. ("(elisp)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(cl)Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(cl)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)"))) with this :doc-spec value: '(;; Commands with key sequences appear in nodes as `foo' and ;; those without as `M-x foo'. ("(emacs)Command Index" nil "['`']\\(M-x[ \t\n]+\\)?" "[''= ]") ;; Variables normally appear in nodes as just `foo'. ("(emacs)Variable Index" nil "['`']" "['']") ;; Almost all functions, variables, etc appear in nodes as ;; " -- Function: foo" etc. A small number of aliases and ;; symbols appear only as `foo', and will miss out on exact ;; positions. Allowing `foo' would hit too many false matches ;; for things that should go to Function: etc, and those latter ;; are much more important. Perhaps this could change if some ;; sort of fallback match scheme existed. ("(elisp)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(info)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(efaq-w32)Indexes" nil "^ -+ .*: " "\\( \\|$\\)") ("(eintr)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(ccmode)Command and Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(ccmode)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(idlwave)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(octave-mode)Lisp Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(octave-mode)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(org)Command and Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(org)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(vhdl-mode)Command Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(vhdl-mode)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(eudc)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(emacs-gnutls)Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(emacs-gnutls)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(gnus)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(mh-e)Command Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(mh-e)Option Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(message)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(newsticker)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(pgg)Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(pgg)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(sasl)Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(sasl)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(sc)Command Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(sc)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(sieve)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(tramp)Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(tramp)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(autotype)Command Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(autotype)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(calc)Lisp Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(calc)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(dired-x)Command Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(dired-x)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(eieio)Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(ert)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(eww)Lisp Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(eww)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(epa)Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(epa)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(ediff)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(eshell)Function and Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(flymake)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(forms)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(htmlfontify)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(ido)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(pl-cvs)Function and Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(reftex)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(ses)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(srecode)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(semantic)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(speedbar)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(viper)Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(viper)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(wisent)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(woman)Command Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(woman)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(auth)Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(auth)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(cl)Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(cl)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(dbus)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(mime)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(smtpmail)Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(url)Function Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(url)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)") ("(widget)Index" nil "^ -+ .*: " "\\( \\|$\\)") ) That covers all of the manuals I get with `emacs -Q', which have indexes with entries for Emacs-Lisp commands, functions, options, and variables. Please do that, or something similar, so such symbols get picked up by `info-lookup'. I used the same order here as the manuals are presented in the top-level menu. You may want to change the order. Another possible change you might want to make is to use a value similar to the one for "(emacs)Command Index" for other "(...)Command Index" entries. ["(efaq-w32)Indexes" should probably be included conditionally, for MS Windows. And perhaps on other platforms `emacs -Q' gives a different set of manuals, so other adjustments could be made.] Note that `info-lookup' is used by 3rd-party libraries, so this will help them as well. It seems like there should be an easy way to just _add_ such missing entries after the fact, e.g., in a 3rd-party library. For example, I was thinking that perhaps `info-lookup-add-help' (without the `-maybe') would take care of that. But apparently not. While trying that I found I had to reset the various global values in `info-look.el' - once the alist and cache are defined there doesn't seem to be a way (already provided) to update them. `info-look.el' seems a bit monolithic, in this regard. But perhaps I'm missing something. In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd Windowing system distributor `Microsoft Corp.', version 10.0.18362 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3''