summaryrefslogtreecommitdiff
path: root/lisp/dired.el
diff options
context:
space:
mode:
authorAndré Spiegel <spiegel@gnu.org>1998-06-05 12:46:02 +0000
committerAndré Spiegel <spiegel@gnu.org>1998-06-05 12:46:02 +0000
commit6e5d9ec5684c8888ad2a8d6a2d6647c0d90d9ea2 (patch)
tree42a03e5c7d5fc36ade906b38511d55438eb8c0bf /lisp/dired.el
parentabc8b974597fbb4bc076df647db05cd7a49b6f98 (diff)
downloademacs-6e5d9ec5684c8888ad2a8d6a2d6647c0d90d9ea2.tar.gz
(dired-internal-noselect): Call either dired-mode or MODE, but not both.
Diffstat (limited to 'lisp/dired.el')
-rw-r--r--lisp/dired.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 8b602c60777..864d1b6f876 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -523,8 +523,8 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
;; if it was the name of a directory at all.
(file-name-directory dirname))
(or switches (setq switches dired-listing-switches))
- (dired-mode dirname switches)
- (if mode (funcall mode))
+ (if mode (funcall mode)
+ (dired-mode dirname switches))
;; default-directory and dired-actual-switches are set now
;; (buffer-local), so we can call dired-readin:
(let ((failed t))