From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60587: Patch for adding links to symbols' help documentation Date: Mon, 09 Jan 2023 14:46:37 +0200 Message-ID: <835ydfq3iq.fsf@gnu.org> References: <86y1qgr1bf.fsf@duenenhof-wilhelm.de> <86tu13qydg.fsf@duenenhof-wilhelm.de> <83h6x2u74b.fsf@gnu.org> <86pmbovljq.fsf@duenenhof-wilhelm.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8544"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60587@debbugs.gnu.org, monnier@iro.umontreal.ca To: "H. Dieter Wilhelm" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 09 14:40:25 2023 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 1pEsO1-00024X-Cf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Jan 2023 14:40:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pErYO-00052L-2v; Mon, 09 Jan 2023 07:47:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pErYM-00050c-IH for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2023 07:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pErYM-0005ci-6w for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2023 07:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pErYM-00006e-2M for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2023 07:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jan 2023 12:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60587 X-GNU-PR-Package: emacs Original-Received: via spool by 60587-submit@debbugs.gnu.org id=B60587.1673268380341 (code B ref 60587); Mon, 09 Jan 2023 12:47:02 +0000 Original-Received: (at 60587) by debbugs.gnu.org; 9 Jan 2023 12:46:20 +0000 Original-Received: from localhost ([127.0.0.1]:35993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pErXg-00005R-2R for submit@debbugs.gnu.org; Mon, 09 Jan 2023 07:46:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pErXe-000058-12 for 60587@debbugs.gnu.org; Mon, 09 Jan 2023 07:46:18 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pErXY-0005O4-C2; Mon, 09 Jan 2023 07:46:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=o80Wj/54ecas1gX9nrN6RGSRyDY22c5PRmaPytXk2kM=; b=lhSdUGU05FQ7 zSng0/SHUBbXrgs8muG6wcUzFsGFsKqwUn47d35WtUh9IWdnsMZjrE66q5gkaNXynVje3LsXcz3kJ MVqc62x1vIN4fz8a9T2kFhBJ3fLA+iyEuDg3IZFVXR57tJtuzhhRigmfhJDiuuIdkeMenNwDQ7dwO MOvtmtemMjmy30beR/MMEsfwAkS2opkVoaGkQ2DrfHbjcFb3JlMkGQCR6DCnkTQdTSfNcs0yZ7/OW 4qzm41d0oY78MZDmCxxoeMDbRUp4MT6RnNZYRH5crQ2vIn4hHHouwWcQU74QugF2SifEN9xpGn6UI L4RSlPUizpGMxXtzKO7QeA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pErXX-0000dZ-NJ; Mon, 09 Jan 2023 07:46:12 -0500 In-Reply-To: <86pmbovljq.fsf@duenenhof-wilhelm.de> (dieter@duenenhof-wilhelm.de) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253019 Archived-At: > From: "H. Dieter Wilhelm" > Cc: Stefan Monnier , 60587@debbugs.gnu.org > Date: Sun, 08 Jan 2023 21:06:01 +0100 > > >> +(info-initialize) > > > > Why do you need to call this? and why on top level? > > Because I have no better idea to build info-emacs-info-dir-content > (maybe dynamically?). With the code below I force the initialisation of > Info-directory-list. It is used for checking if the current info > document is relevant to Emacs. Info-directory-list starts as nil, so you can test its value. More generally, this feature displays links in an Info buffer, right? If an Info buffer is displayed in Emacs, info-initialize was already called, and you don't need to call it again. > >> +;; Turn into regexp list necessary? Stefan > >> +;; Switch to alist with explanation of file name? > >> +(defcustom info-xref-none-emacs-or-elisp-documents > >> + '("aarm2012" ; Stefan: Ada manual, Elpa archive > >> + "arm2012" ; Stefan: Ada manual > >> + "sicp" ; T.V: Structure and Interpretation of Computer Programs, > >> + ; Melpa archive > >> + ) > >> + "List of all none GNU-Emacs or Elisp documentation. > >> +Or other documents not to be checked for linking to their help > >> +documentation. The list must contains only the base name of the > >> +files (without their file name extension \".info\")." > >> + :type '(repeat string) > >> + :group 'info-xref) > > > > Not sure what is this about, and what do the names above signify. > > This was a discussion on gmane.emacs.devel (please see > jwvtv0qv5av.fsf-monnier+emacs@gnu.org) on how to avoid trying to link > info documents which don't belong to Emacs. (Core-Utils, Ada > documentation from Melpa, etc.) I cannot access that discussion with this URL (can you tell on which date that happened? then I will look in the emacs-devel list archives), and I don't think I understand how such names will creep into this feature. Does the code somehow search every Info manual on the system to do its job?