diff mbox series

[bug#65586,emacs-guix] elisp/guix-misc: Update Emacs Info-directory-list if needed

Message ID 20230828174008.21189-1-janneke@gnu.org
State New
Headers show
Series [bug#65586,emacs-guix] elisp/guix-misc: Update Emacs Info-directory-list if needed | expand

Commit Message

Janneke Nieuwenhuizen Aug. 28, 2023, 5:40 p.m. UTC
* elisp/guix-misc.el (guix-set-emacs-environment): Set 'Info-directory-list'
when setting "INFOPATH" variable.
---
 elisp/guix-misc.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Ludovic Courtès Sept. 9, 2023, 1:43 p.m. UTC | #1
Hi,

Janneke Nieuwenhuizen <janneke@gnu.org> skribis:

> * elisp/guix-misc.el (guix-set-emacs-environment): Set 'Info-directory-list'
> when setting "INFOPATH" variable.

LGTM, please push!  :-)

Ludo’.
Janneke Nieuwenhuizen Sept. 9, 2023, 1:56 p.m. UTC | #2
Ludovic Courtès writes:

> Janneke Nieuwenhuizen <janneke@gnu.org> skribis:
>
>> * elisp/guix-misc.el (guix-set-emacs-environment): Set 'Info-directory-list'
>> when setting "INFOPATH" variable.
>
> LGTM, please push!  :-)

Thanks!  Pushed to master as 3fba3f46483aa8ad4482ca2ae02d83a6f0fefd46

Greetings,
Janneke
diff mbox series

Patch

diff --git a/elisp/guix-misc.el b/elisp/guix-misc.el
index 93340a2..f4a7aaa 100644
--- a/elisp/guix-misc.el
+++ b/elisp/guix-misc.el
@@ -1,7 +1,7 @@ 
 ;;; guix-misc.el --- Miscellaneous definitions  -*- lexical-binding: t -*-
 
 ;; Copyright © 2014–2018 Alex Kost <alezost@gmail.com>
-;; Copyright © 2018, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;; Copyright © 2018, 2020, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
 
 ;; This file is part of Emacs-Guix.
 
@@ -244,7 +244,9 @@  If PROFILE is nil, use `guix-current-profile'."
                        path)))
         (setenv variable value)
         (when (equal variable "PATH")
-          (setq exec-path (split-string value ":")))))))
+          (setq exec-path (split-string value ":")))
+        (when (equal variable "INFOPATH")
+          (setq Info-directory-list (split-string value ":")))))))
 
 
 ;;; Executing guix commands