diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-02-07 01:31:15 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-02-07 01:31:53 +0100 |
commit | 838da4aef8768ff74c419e0ecd6498b9dad24641 (patch) | |
tree | 98356d660487c3f67e41af8e1f201712120b8d80 /lisp/locate.el | |
parent | 69efc36c6beae586ca9ec429229f35bcc5c69b5b (diff) | |
download | emacs-838da4aef8768ff74c419e0ecd6498b9dad24641.tar.gz |
Make dired-directory and dired-subdir-alist buffer-local
* lisp/dired.el (dired-directory):
(dired-subdir-alist): Make buffer-local (bug#7118)
(dired-readin):
(dired-mode):
* lisp/dired-x.el (dired-virtual): Adjust usage.
* lisp/locate.el (locate-mode):
* lisp/find-lisp.el (find-lisp-find-dired-internal):
* lisp/find-dired.el (find-dired): Adjust usage.
Diffstat (limited to 'lisp/locate.el')
-rw-r--r-- | lisp/locate.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/locate.el b/lisp/locate.el index 95b66f275a1..d4847b9c050 100644 --- a/lisp/locate.el +++ b/lisp/locate.el @@ -461,13 +461,11 @@ Specific `locate-mode' commands, such as \\[locate-find-directory], do not work in subdirectories. \\{locate-mode-map}" - ;; Avoid clobbering this variable - (make-local-variable 'dired-subdir-alist) (setq default-directory "/" buffer-read-only t) (add-to-invisibility-spec '(dired . t)) (dired-alist-add-1 default-directory (point-min-marker)) - (setq-local dired-directory "/") + (setq dired-directory "/") (setq-local dired-subdir-switches locate-ls-subdir-switches) (setq dired-switches-alist nil) ;; This should support both Unix and Windoze style names |