summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 581864f6f46..0aec833445d 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -633,7 +633,8 @@ Directories are separated by occurrences of `path-separator'
(error "%s is not a directory" dir)
(error "%s: no such directory" dir))
(if (file-executable-p dir)
- (setq default-directory dir)
+ (setq default-directory dir
+ list-buffers-directory dir)
(error "Cannot cd to %s: Permission denied" dir))))
(defun cd (dir)