From 6414073a99c8a051adac31900fcd5169a1571496 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 18 Jan 1997 06:10:10 +0000 Subject: [PATCH] (shell-mode): Don't set list-buffers-directory. --- lisp/shell.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))))))) -- 2.39.2