summaryrefslogtreecommitdiff
path: root/lisp/locate.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/locate.el')
-rw-r--r--lisp/locate.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/locate.el b/lisp/locate.el
index 9ace0e84c33..7e69f7638bb 100644
--- a/lisp/locate.el
+++ b/lisp/locate.el
@@ -97,7 +97,7 @@
;; (defadvice dired-make-relative (before set-no-error activate)
;; "For locate mode and Windows, don't return errors"
;; (if (and (eq major-mode 'locate-mode)
-;; (memq system-type (list 'windows-nt 'ms-dos)))
+;; (memq system-type '(windows-nt ms-dos)))
;; (ad-set-arg 2 t)
;; ))
;;
@@ -335,7 +335,7 @@ then `locate-post-command-hook'."
(locate-do-setup search-string)))
(and (not (string-equal (buffer-name) locate-buffer-name))
- (switch-to-buffer-other-window locate-buffer-name))
+ (pop-to-buffer locate-buffer-name))
(run-hooks 'dired-mode-hook)
(dired-next-line 3) ;move to first matching file.