summaryrefslogtreecommitdiff
path: root/lisp/locate.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-02-07 01:31:15 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2022-02-07 01:31:53 +0100
commit838da4aef8768ff74c419e0ecd6498b9dad24641 (patch)
tree98356d660487c3f67e41af8e1f201712120b8d80 /lisp/locate.el
parent69efc36c6beae586ca9ec429229f35bcc5c69b5b (diff)
downloademacs-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.el4
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