From: Richard M. Stallman Date: Sat, 18 Jan 1997 06:10:10 +0000 (+0000) Subject: (shell-mode): Don't set list-buffers-directory. X-Git-Tag: emacs-20.1~3067 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6414073a99c8a051adac31900fcd5169a1571496;p=emacs.git (shell-mode): Don't set list-buffers-directory. --- diff --git a/lisp/shell.el b/lisp/shell.el index 1d4dfcef3c1..97e9589be27 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -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)))))))