]> git.eshelyaron.com Git - emacs.git/commitdiff
(shell-mode): Do set list-files-directory locally.
authorRichard M. Stallman <rms@gnu.org>
Sun, 20 Jul 1997 04:13:45 +0000 (04:13 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 20 Jul 1997 04:13:45 +0000 (04:13 +0000)
lisp/shell.el

index a22b00289d6aa5a931fbea92f7075299859efc12..0fa5462ab8aef670571256c02a03c2ca58e46e2e 100644 (file)
@@ -390,8 +390,10 @@ buffer."
   (setq shell-dirtrackp t)
   (add-hook 'comint-input-filter-functions 'shell-directory-tracker nil t)
   (setq comint-input-autoexpand shell-input-autoexpand)
-  ;; We used to set list-buffers-directory here, but that was wrong.
-  ;; A shell buffer is not a way of editing a directory.
+  ;; 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)
+  (setq list-buffers-directory (expand-file-name default-directory))
   ;; shell-dependent assignments.
   (let ((shell (file-name-nondirectory (car
                 (process-command (get-buffer-process (current-buffer)))))))