diff lisp/shell.el @ 105196:d991506f9286

* menu-bar.el (list-buffers-directory): Add docstring. Make automatically buffer-local. * dired.el (dired-mode): * files.el (cd-absolute): * pcvs.el (cvs-temp-buffer): * pcvs-util.el (cvs-get-buffer-create): * shell.el (shell-mode): * vc-dir.el (vc-dir-mode): Don't make `list-buffers-directory' buffer local.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 25 Sep 2009 04:35:14 +0000
parents f8ba8d6fd250
children 0ad1fc06bfc8
line wrap: on
line diff
--- a/lisp/shell.el	Fri Sep 25 03:42:22 2009 +0000
+++ b/lisp/shell.el	Fri Sep 25 04:35:14 2009 +0000
@@ -440,10 +440,9 @@
   (make-local-variable 'shell-last-dir)
   (setq shell-last-dir nil)
   (setq comint-input-autoexpand shell-input-autoexpand)
+  (shell-dirtrack-mode 1)
   ;; 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)