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#60032: 30.0.50; [WISH] Customizing Info directories Date: Tue, 13 Dec 2022 15:31:50 +0200 Message-ID: <83a63rpgzd.fsf@gnu.org> References: <87zgbrbfva.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25508"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60032@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 13 14:32:16 2022 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 1p55OK-0006RM-Il for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Dec 2022 14:32:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p55OF-00005a-Do; Tue, 13 Dec 2022 08:32:11 -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 1p55O6-0008WN-Rp for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2022 08:32:04 -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 1p55O6-0002Iu-Hg for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2022 08:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p55O6-0003gG-81 for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2022 08:32: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: Tue, 13 Dec 2022 13:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60032 X-GNU-PR-Package: emacs Original-Received: via spool by 60032-submit@debbugs.gnu.org id=B60032.167093831514140 (code B ref 60032); Tue, 13 Dec 2022 13:32:02 +0000 Original-Received: (at 60032) by debbugs.gnu.org; 13 Dec 2022 13:31:55 +0000 Original-Received: from localhost ([127.0.0.1]:60408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p55Nz-0003g0-7y for submit@debbugs.gnu.org; Tue, 13 Dec 2022 08:31:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p55Nw-0003ft-NY for 60032@debbugs.gnu.org; Tue, 13 Dec 2022 08:31:53 -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 1p55Nq-0002C9-E8; Tue, 13 Dec 2022 08:31:46 -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=gXE0AKIHrnR4SPlUxWjfsxSoXlCzUpyyFd6ZcBTHX4M=; b=Z48HCjWuCCMa Ix9TaowSZSjwS+LkoomMhD7/PLb4uakx/ATswhvem9uM2lU4/oGcsmcCikH7dP3cYoI3kDN/1CC2V zoMxWE68bQmzpGsBLy/JkH4ppOhuWMlX/KPuDDwTG3EqwwQcQX3ksU5N6AmVLomDuEDx7TOkPxycM Xf8GUbDZG2cPwZfhkni5QUXhDQ1NaFeIP8BGCBdMybtNVFL780rVYQNvOF57mt0hzb0fJCqOFBUOS RxE1P3mQOpc3mLS6c2IokxQfZRZcT1yFOKDoWukpyEj6Lisfr0CMfQdtS6hd30eJEXpjJ7XvX/5qN Sgx/zbx6NOd+vdrRu9XJCw==; 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 1p55Np-00064E-NI; Tue, 13 Dec 2022 08:31:46 -0500 In-Reply-To: <87zgbrbfva.fsf@localhost> (message from Ihor Radchenko on Tue, 13 Dec 2022 13:19:37 +0000) 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:250834 Archived-At: > From: Ihor Radchenko > Date: Tue, 13 Dec 2022 13:19:37 +0000 > > I find the current customization of Info search path slightly awkward. > > Emacs Info info page suggests to set INFOPATH environment variable. > Yet, it is not something I feel comfortable doing (it is outside the > nice warm Elisp VM). > > There is also `Info-default-directory-list', but it only works for > special non-default value of INFOPATH. > > Currently, the only way I found to force adding directories as Info > sources is the following: > > (require 'info) > (info-initialize) > (add-to-list 'Info-directory-list "~/Git/org-mode/doc/") > > which is awkward. > > Would it be possible to introduce something like > `Info-overriding-directory-list' to be added in front of Info path in > Emacs? This will complement `Info-additional-directory-list'. Please describe your use case, because I don't think I see why another variable would be needed. I guess you have INFOPATH defined (by someone who is not you?), but you don't like its value or something? It's not clear which problems you are trying to solve. In general, I can say 2 things, which I'm sure you already know: . environment variables can be set inside Emacs . you can hack Info-directory-list in any number of ways, and do whatever you want with it, in Lisp While the above two methods are not exactly what I'd suggest to an Emacs an Info newbie, I definitely can see you using them. So again, I'm unsure what kind of awkwardness is bothering you. Please elaborate.