aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-20 04:13:45 +0000
committerRichard M. Stallman1997-07-20 04:13:45 +0000
commit5d9719e6eeaf5ea4d16c19f947148b0e78f81531 (patch)
tree0b04f033b2d81518264ea949b684b5d01e4e8ffe /lisp/shell.el
parent116068730627f61218b21dc46597d14331c9e7a2 (diff)
downloademacs-5d9719e6eeaf5ea4d16c19f947148b0e78f81531.tar.gz
emacs-5d9719e6eeaf5ea4d16c19f947148b0e78f81531.zip
(shell-mode): Do set list-files-directory locally.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index a22b00289d6..0fa5462ab8a 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -390,8 +390,10 @@ buffer."
390 (setq shell-dirtrackp t) 390 (setq shell-dirtrackp t)
391 (add-hook 'comint-input-filter-functions 'shell-directory-tracker nil t) 391 (add-hook 'comint-input-filter-functions 'shell-directory-tracker nil t)
392 (setq comint-input-autoexpand shell-input-autoexpand) 392 (setq comint-input-autoexpand shell-input-autoexpand)
393 ;; We used to set list-buffers-directory here, but that was wrong. 393 ;; This is not really correct, since the shell buffer does not really
394 ;; A shell buffer is not a way of editing a directory. 394 ;; edit this directory. But it is useful in the buffer list and menus.
395 (make-local-variable 'list-buffers-directory)
396 (setq list-buffers-directory (expand-file-name default-directory))
395 ;; shell-dependent assignments. 397 ;; shell-dependent assignments.
396 (let ((shell (file-name-nondirectory (car 398 (let ((shell (file-name-nondirectory (car
397 (process-command (get-buffer-process (current-buffer))))))) 399 (process-command (get-buffer-process (current-buffer)))))))