From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: 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 Message-ID: <87tv2hux6v.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35455) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFnAt-0005eF-71 for bug-guix@gnu.org; Sat, 21 Mar 2020 19:05:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFnAs-0001nW-2Y for bug-guix@gnu.org; Sat, 21 Mar 2020 19:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42441) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFnAr-0001nM-Vj for bug-guix@gnu.org; Sat, 21 Mar 2020 19:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFnAr-0005iC-R5 for bug-guix@gnu.org; Sat, 21 Mar 2020 19:05:01 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: (Adam Porter's message of "Sun, 8 Mar 2020 08:31:24 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Adam Porter Cc: 39984-done@debbugs.gnu.org Hi Adam, Adam Porter 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 =E2=80=98Info-default-directory-li= st=E2=80=99 > if there is no INFOPATH variable in the environment, or the > concatenation of the two if INFOPATH ends with a =E2=80=98path-separator= =E2=80=99. > > 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=3D"$_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.s= h. Done in 3c69701f9735dd62a2f765b8bd23a7eaeb391412. Thanks for the clear explanation! Ludo=E2=80=99.