emacs-diffs
[Top][All Lists]
Advanced

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

emacs-28 69cc3d38bc: Fix Tramp error with eshell integration


From: Michael Albinus
Subject: emacs-28 69cc3d38bc: Fix Tramp error with eshell integration
Date: Sun, 18 Sep 2022 06:52:01 -0400 (EDT)

branch: emacs-28
commit 69cc3d38bc7b5887e7f1497937d0ea8be1f70673
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    Fix Tramp error with eshell integration
    
    * lisp/net/tramp-integration.el (tramp-eshell-directory-change):
    Respect local `default-directory'.  (Bug#57556)
---
 lisp/net/tramp-integration.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/net/tramp-integration.el b/lisp/net/tramp-integration.el
index b5df9804ab..9aa4b2b1e8 100644
--- a/lisp/net/tramp-integration.el
+++ b/lisp/net/tramp-integration.el
@@ -134,8 +134,10 @@ been set up by `rfn-eshadow-setup-minibuffer'."
   ;; Remove last element of `(exec-path)', which is `exec-directory'.
   ;; Use `path-separator' as it does eshell.
   (setq eshell-path-env
-       (mapconcat
-        #'identity (butlast (tramp-compat-exec-path)) path-separator)))
+        (if (file-remote-p default-directory)
+            (mapconcat
+            #'identity (butlast (tramp-compat-exec-path)) path-separator)
+          (getenv "PATH"))))
 
 (with-eval-after-load 'esh-util
   (add-hook 'eshell-mode-hook



reply via email to

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