unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: 60032@debbugs.gnu.org
Subject: bug#60032: 30.0.50; [WISH] Customizing Info directories
Date: Tue, 13 Dec 2022 15:31:50 +0200	[thread overview]
Message-ID: <83a63rpgzd.fsf@gnu.org> (raw)
In-Reply-To: <87zgbrbfva.fsf@localhost> (message from Ihor Radchenko on Tue, 13 Dec 2022 13:19:37 +0000)

> From: Ihor Radchenko <yantar92@posteo.net>
> 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.





  reply	other threads:[~2022-12-13 13:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-13 13:19 bug#60032: 30.0.50; [WISH] Customizing Info directories Ihor Radchenko
2022-12-13 13:31 ` Eli Zaretskii [this message]
2022-12-13 13:43   ` Ihor Radchenko
2022-12-13 14:39     ` Eli Zaretskii
2022-12-14 10:27       ` Ihor Radchenko
2022-12-17 12:55         ` Eli Zaretskii
2022-12-15  0:23 ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a63rpgzd.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=60032@debbugs.gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).