customizing Info-default-directory-list #2573
Answered
by
thierryvolpiatto
martin-volf
asked this question in
Q&A
Replies: 7 comments 2 replies
|
Martin Volf ***@***.***> writes:
The change introduced with fixing #2118 causes that my customization
of Info-default-directory-list does not work any longer. What's the
expected way of doing that? The function info-initialize is called
from helm-info.el early on, before my init.el file is read,
How is this possible that helm-info is loaded before your init file?
… and as a result, any changes done to Info-default-directory-list done
in init.el are ignored.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.*Message ID: ***@***.***>
--
Thierry
|
1 reply
Answer selected by
martin-volf
|
Martin Volf ***@***.***> writes:
How is this possible that helm-info is loaded before your init file?
It is not, my bad. Something is calling info-initialize and the only
reference I found is in helm-info, but that is indeed loaded long
after the init file.
info-initialize is not modifying Info-default-directory-list, only
Info-directory-list. If Info-directory-list is already feeded, it
doesn't touch it, otherwise it tries to give it a default value
according to INFOPATH if found and finally fallback to
(Info-default-dirs).
So I can't see for now in what Helm is involved here. Perhaps you can
give me more infos on how you are setting up your infos directories?
… —
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.*Message ID: ***@***.***>
--
Thierry
|
1 reply
|
Martin Volf ***@***.***> writes:
info-initialize is not modifying Info-default-directory-list, only
Info-directory-list. If Info-directory-list is already feeded, it
doesn't touch it, otherwise it tries to give it a default value
according to INFOPATH if found and finally fallback to
(Info-default-dirs).
Right, so when something calls info-initialize, any further changes to
Info-default-directory-list are ignored. I am adding custom
directories to that default list in my init file and after a larger
emacs and emacs-packages update this stopped to have any effect.
Info-default-directory-list and Info-directory-list are confusing, my
understanding is that Info-default-directory-list should not be a custom
variable, its purpose is to handle a list of defaults Emacs itself sets
on startup. Here I only modify Info-directory-list from my init file and
after that helm is loaded (in this case info-initialize is a noop).
So I can't see for now in what Helm is involved here.
Helm is not involved at all - I saw the reference to info-initialize
in helm-info and concluded that this was the problem. But that
conclusion was too quick; as you wrote, helm-info is loaded much later
than my init file. Sorry for the confusion.
No problems.
… —
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.*Message ID: ***@***.***>
--
Thierry
|
0 replies
|
Thierry Volpiatto ***@***.***> writes:
Info-default-directory-list and Info-directory-list are confusing, my
understanding is that Info-default-directory-list should not be a custom
variable, its purpose is to handle a list of defaults Emacs itself sets
on startup.
I think this warrants an M-x report-emacs-bug. Martin, could you maybe
do that?
|
0 replies
|
Michael Heerdegen ***@***.***> writes:
Thierry Volpiatto ***@***.***> writes:
> Info-default-directory-list and Info-directory-list are confusing, my
> understanding is that Info-default-directory-list should not be a custom
> variable, its purpose is to handle a list of defaults Emacs itself sets
> on startup.
I think this warrants an M-x report-emacs-bug. Martin, could you maybe
do that?
I see that Info-directory-list is feeded in package.el, so if user set
Info-default-directory-list after package initialize (which is the way
to do) Info-default-directory-list will be ignored.
… —
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.*Message ID: ***@***.***>
--
Thierry
|
0 replies
|
For the sake of completeness: looks like Info-default-directory-list should not be used the way I did it, and its comment says that, in a sense. I should have been using Info-additional-directory-list instead - that works without problems. The documentation in this respect is a bit hard to find (at least for the likes of me), but it is there. |
0 replies
|
Thierry Volpiatto ***@***.***> writes:
I see that Info-directory-list is feeded in package.el, so if user set
Info-default-directory-list after package initialize (which is the way
to do) Info-default-directory-list will be ignored.
Do you also think that the user should just customize
`Info-additional-directory-list`? Seems that this is indeed the option
one should normally change.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The change introduced with fixing #2118 causes that my customization of
Info-default-directory-listdoes not work any longer. What's the expected way of doing that? The functioninfo-initializeis called fromhelm-info.elearly on, before myinit.elfile is read, and as a result, any changes done toInfo-default-directory-listdone ininit.elare ignored.All reactions