emacs-diffs
[Top][All Lists]
Advanced

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

emacs-28 5b7752a865: Fix problem with popd for in remote shell buffers


From: Michael Albinus
Subject: emacs-28 5b7752a865: Fix problem with popd for in remote shell buffers
Date: Tue, 15 Feb 2022 12:13:14 -0500 (EST)

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

    Fix problem with popd for in remote shell buffers
    
    * lisp/shell.el (shell-prefixed-directory-name):
    Use `file-local-name' for DIR.  (Bug#53927)
---
 lisp/shell.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/shell.el b/lisp/shell.el
index ffaeb61c0e..c9def1bb3f 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -941,7 +941,7 @@ Environment variables are expanded, see function 
`substitute-in-file-name'."
       dir
     (if (file-name-absolute-p dir)
        ;; The name is absolute, so prepend the prefix.
-       (concat comint-file-name-prefix dir)
+       (concat comint-file-name-prefix (file-local-name dir))
       ;; For relative name we assume default-directory already has the prefix.
       (expand-file-name dir))))
 



reply via email to

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