diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/shell.el | 4 |
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 () |