all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: What's the right way to define a custom info path.
Date: Wed, 25 Nov 2015 20:02:10 +0200	[thread overview]
Message-ID: <83wpt6vty5.fsf@gnu.org> (raw)
In-Reply-To: <1603934532.294950108.1448466307513.JavaMail.root@spooler5n-g27.priv.proxad.net>

> Date: Wed, 25 Nov 2015 16:45:07 +0100 (CET)
> From: pierre.techoueyres@free.fr
> 
> ** My problems
>    First I tried to setup the Info-path with the custom variable `Info-default-directory-list' but that doesn't work, because of package-activate-1 which call info-initialize so the customization of Info-default-directory-list is done too late. And worse it's not correctly initialized !!!
> 
> 
>    Next I try using `Info-directory-list' but to do so I must require info and call info-initialize in my init.el and I prefer to avoid that.
> 
>    Then I looked at `Info-additional-directory-list' which has the same problem as `Info-default-directory-list'.
> 
> ** What I think should be done.
>    1) `Info-default-directory-list' should be correctly initialized for the emacs w32.
>       1) To do that env.el should provide an `w32-substitute-env-vars' to allow replacement of %var% strings with the corresponding env vars.
>       2) The defcustom of Info-default-directory-list should call (substitute-env-vars configure-info-directory) instead of configure-info-directory directly.      
> 
>    2) `package-activate-1' should not require info nor use `info-initialize'. Instead it should add info paths on `Info-default-directory-list' or `Info-additional-directory-list' (maybe the later).
> 
> ** My questions
>    Have I do something wrong with my config ? Should I set an INFOPATH env var with absolutes paths ?
>    If the answer of the previous questions is : No, should I open bugs ?

The way to set this up correctly is to define the INFOPATH environment
variable (outside Emacs) which mentions the directories with Info
files in the proper order.  The Emacs is supposed to automatically
pick up the directories from INFOPATH, and you should be able to read
your manuals without any further problems.

You are instead trying to futz with Emacs variables that are not
supposed to do that well.  I suggest to save yourself a lot of trouble
and go via INFOPATH.

> ** My questions
>    Have I do something wrong with my config ? Should I set an INFOPATH env var with absolutes paths ?

Yes to INFOPATH.

>    If the answer of the previous questions is : No, should I open bugs ?

No, there's no bug here, AFAICT.  If you want to set up
Info-directory-list or Info-additional-directory-list, you must load
info.elc first.  (But again, I don't recommend going that way.)



  reply	other threads:[~2015-11-25 18:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1139248550.294947690.1448466260727.JavaMail.root@spooler5n-g27.priv.proxad.net>
2015-11-25 15:45 ` What's the right way to define a custom info path pierre.techoueyres
2015-11-25 18:02   ` Eli Zaretskii [this message]
2015-11-25 19:54     ` Pierre Téchoueyres
2015-11-25 20:24       ` Eli Zaretskii
2015-11-25 22:13         ` Pierre Téchoueyres
2015-11-25 19:54     ` Pierre Téchoueyres

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

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

  git send-email \
    --in-reply-to=83wpt6vty5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.