emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#39984: closed (INFOPATH set in /etc/profile.d/guix.sh should end in


From: GNU bug Tracking System
Subject: bug#39984: closed (INFOPATH set in /etc/profile.d/guix.sh should end in ":" for Emacs's sake)
Date: Sat, 21 Mar 2020 23:05:01 +0000

Your message dated Sun, 22 Mar 2020 00:04:24 +0100
with message-id <address@hidden>
and subject line Re: bug#39984: INFOPATH set in /etc/profile.d/guix.sh should 
end in ":" for Emacs's sake
has caused the debbugs.gnu.org bug report #39984,
regarding INFOPATH set in /etc/profile.d/guix.sh should end in ":" for Emacs's 
sake
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
39984: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39984
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: INFOPATH set in /etc/profile.d/guix.sh should end in ":" for Emacs's sake Date: Sun, 8 Mar 2020 08:31:24 -0500
I installed Guix into my system, and I've been enjoying using it.
However, I found that, after installing it, when I logged out and back
in, and then started Emacs, Emacs could no longer see my system's info
pages (including Emacs's own info pages).  I found that the Emacs
variable Info-directory-list only contained
"/home/me/.config/guix/current/share/info", so it couldn't see the
info pages in "/usr/local/share/info/" and "/usr/share/info/".
According to the Info-directory-list docstring:

If nil, meaning not yet initialized, Info uses the environment
variable INFOPATH to initialize it, or ‘Info-default-directory-list’
if there is no INFOPATH variable in the environment, or the
concatenation of the two if INFOPATH ends with a ‘path-separator’.

I found that INFOPATH is being set in /etc/profile.d/guix.sh, which does this:

  # Export INFOPATH so that the updated info pages can be found
  # and read by both /usr/bin/info and/or $GUIX_PROFILE/bin/info
  export INFOPATH="$_GUIX_PROFILE/share/info${INFOPATH:+:}$INFOPATH"

Since it does not append a colon at the end, Emacs doesn't add the
directories from Info-default-directory-list.  I added a colon to the
end and restarted Emacs, and it fixed the problem.

So I'd suggest adding ":" to the end of INFOPATH in /etc/profile.d/guix.sh.

Thanks.



--- End Message ---
--- Begin Message --- Subject: Re: bug#39984: INFOPATH set in /etc/profile.d/guix.sh should end in ":" for Emacs's sake Date: Sun, 22 Mar 2020 00:04:24 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Hi Adam,

Adam Porter <address@hidden> skribis:

> I installed Guix into my system, and I've been enjoying using it.
> However, I found that, after installing it, when I logged out and back
> in, and then started Emacs, Emacs could no longer see my system's info
> pages (including Emacs's own info pages).  I found that the Emacs
> variable Info-directory-list only contained
> "/home/me/.config/guix/current/share/info", so it couldn't see the
> info pages in "/usr/local/share/info/" and "/usr/share/info/".
> According to the Info-directory-list docstring:
>
> If nil, meaning not yet initialized, Info uses the environment
> variable INFOPATH to initialize it, or ‘Info-default-directory-list’
> if there is no INFOPATH variable in the environment, or the
> concatenation of the two if INFOPATH ends with a ‘path-separator’.
>
> I found that INFOPATH is being set in /etc/profile.d/guix.sh, which does this:
>
>   # Export INFOPATH so that the updated info pages can be found
>   # and read by both /usr/bin/info and/or $GUIX_PROFILE/bin/info
>   export INFOPATH="$_GUIX_PROFILE/share/info${INFOPATH:+:}$INFOPATH"
>
> Since it does not append a colon at the end, Emacs doesn't add the
> directories from Info-default-directory-list.  I added a colon to the
> end and restarted Emacs, and it fixed the problem.
>
> So I'd suggest adding ":" to the end of INFOPATH in /etc/profile.d/guix.sh.

Done in 3c69701f9735dd62a2f765b8bd23a7eaeb391412.

Thanks for the clear explanation!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]