emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/exec-path-from-shell d14d6d2966 106/114: Merge pull reques


From: ELPA Syncer
Subject: [nongnu] elpa/exec-path-from-shell d14d6d2966 106/114: Merge pull request #101 from mnewt/eshell-path-env-in-buffers
Date: Tue, 5 Sep 2023 04:00:08 -0400 (EDT)

branch: elpa/exec-path-from-shell
commit d14d6d2966efe5a1409f84a6b9d998268f74761d
Merge: 4ea306a76f a45edbc2d0
Author: Steve Purcell <steve@sanityinc.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #101 from mnewt/eshell-path-env-in-buffers
    
    Set each instance of the buffer local variable eshell-path-env
---
 exec-path-from-shell.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/exec-path-from-shell.el b/exec-path-from-shell.el
index e0e381f42e..89eed8b5e7 100644
--- a/exec-path-from-shell.el
+++ b/exec-path-from-shell.el
@@ -225,8 +225,10 @@ Additionally, if NAME is \"PATH\" then also update the
 variables `exec-path' and `eshell-path-env'."
   (setenv name value)
   (when (string-equal "PATH" name)
-    (setq eshell-path-env value
-          exec-path (append (parse-colon-path value) (list exec-directory)))))
+    (setq exec-path (append (parse-colon-path value) (list exec-directory)))
+    ;; `eshell-path-env' is a buffer local variable, so change its default
+    ;; value.
+    (setq-default eshell-path-env value)))
 
 ;;;###autoload
 (defun exec-path-from-shell-copy-envs (names)



reply via email to

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