aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorSimon Marshall1995-03-02 08:59:07 +0000
committerSimon Marshall1995-03-02 08:59:07 +0000
commitb7e97ed5040d01cc08fe9361072e60d8a220ed54 (patch)
tree48254e1f47ced3e5ab73ba73291bc35a6caa7b77 /lisp/shell.el
parenta96e9ed73e093b1f6b6b55050b15ddf7601462ae (diff)
downloademacs-b7e97ed5040d01cc08fe9361072e60d8a220ed54.tar.gz
emacs-b7e97ed5040d01cc08fe9361072e60d8a220ed54.zip
Make sure shell-cd sets list-buffers-directory to a directory ending with `/'.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index ba87a0f8ba4..9f07194d305 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -549,7 +549,9 @@ Environment variables are expanded, see function `substitute-in-file-name'."
549 549
550(defun shell-cd (dir) 550(defun shell-cd (dir)
551 "Do normal `cd' to DIR, and set `list-buffers-directory'." 551 "Do normal `cd' to DIR, and set `list-buffers-directory'."
552 (if shell-dirtrackp (setq list-buffers-directory (expand-file-name dir))) 552 (if shell-dirtrackp
553 (setq list-buffers-directory (file-name-as-directory
554 (expand-file-name dir))))
553 (cd dir)) 555 (cd dir))
554 556
555(defun shell-resync-dirs () 557(defun shell-resync-dirs ()