(shell-mode): Don't set list-buffers-directory.
authorRichard M. Stallman <rms@gnu.org>
Sat, 18 Jan 1997 06:10:10 +0000 (06:10 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 18 Jan 1997 06:10:10 +0000 (06:10 +0000)
lisp/shell.el

index 1d4dfce..97e9589 100644 (file)
@@ -346,8 +346,8 @@ buffer."
   (setq shell-dirtrackp t)
   (add-hook 'comint-input-filter-functions 'shell-directory-tracker nil t)
   (setq comint-input-autoexpand shell-input-autoexpand)
-  (make-local-variable 'list-buffers-directory)
-  (setq list-buffers-directory (expand-file-name default-directory))
+  ;; We used to set list-buffers-directory here, but that was wrong.
+  ;; A shell buffer is not a way of editing a directory.
   ;; shell-dependent assignments.
   (let ((shell (file-name-nondirectory (car
                 (process-command (get-buffer-process (current-buffer)))))))