Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let info.el parse INFOPATH #75

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Let info.el parse INFOPATH #75

merged 2 commits into from
Mar 26, 2024

Conversation

hpfr
Copy link
Contributor

@hpfr hpfr commented Mar 26, 2024

See commit message. I came across this using Guix on an Ubuntu host, where INFOPATH is set with a trailing colon on login.

A trailing colon in INFOPATH indicates select default directories should
be appended to `Info-directory-list'. See `Info-default-dirs'.

`parse-colon-path' produces a trailing `nil' in `Info-directory-list'
when a trailing colon is present in INFOPATH. This leads to type errors
in Info functions expecting only strings.

`info-initialize' is called by Info entry points and parses INFOPATH
when `Info-directory-list' is not already set. Clear it to force parsing
instead of handling parsing ourselves.

Fixes: 7effcda ("Update info-directory-list from INFOPATH if set")
Closes: purcell#25
envrc.el Outdated Show resolved Hide resolved
@purcell
Copy link
Owner

purcell commented Mar 26, 2024

Great, thanks!

@purcell purcell merged commit 8eb7401 into purcell:master Mar 26, 2024
1 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants