# HG changeset patch # User Luc Teirlinck # Date 1148681247 0 # Node ID b7a7287f9052a99113133f75acce2d3a7c9830d1 # Parent 88e8184b9f87d97ee6fb6f9a6bd8af58976c7534 (shell-mode): Call shell-dirtrack-mode after list-buffers-directory is made a local variable, to avoid setting the default value. diff -r 88e8184b9f87 -r b7a7287f9052 lisp/shell.el --- a/lisp/shell.el Fri May 26 22:07:04 2006 +0000 +++ b/lisp/shell.el Fri May 26 22:07:27 2006 +0000 @@ -433,11 +433,11 @@ (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)