summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorLuc Teirlinck <teirllm@auburn.edu>2006-05-26 22:07:27 +0000
committerLuc Teirlinck <teirllm@auburn.edu>2006-05-26 22:07:27 +0000
commit438a5bf6385a53af2356c7c36396d633f62b8ab1 (patch)
tree87af58da80132ee9104c71026571e2ff12c30f29 /lisp/shell.el
parent836788c9cd3b0d66c3a5bc3cc6a7451836525ada (diff)
downloademacs-438a5bf6385a53af2356c7c36396d633f62b8ab1.tar.gz
(shell-mode): Call shell-dirtrack-mode after list-buffers-directory is
made a local variable, to avoid setting the default value.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index bfa9565e8d4..6e87ba41d37 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -433,11 +433,11 @@ buffer."
(setq shell-dirstack nil)
(make-local-variable 'shell-last-dir)
(setq shell-last-dir nil)
- (shell-dirtrack-mode 1)
(setq comint-input-autoexpand shell-input-autoexpand)
;; This is not really correct, since the shell buffer does not really
;; edit this directory. But it is useful in the buffer list and menus.
(make-local-variable 'list-buffers-directory)
+ (shell-dirtrack-mode 1)
(setq list-buffers-directory (expand-file-name default-directory))
;; shell-dependent assignments.
(when (ring-empty-p comint-input-ring)