aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Spiegel1998-06-05 12:46:02 +0000
committerAndré Spiegel1998-06-05 12:46:02 +0000
commit6e5d9ec5684c8888ad2a8d6a2d6647c0d90d9ea2 (patch)
tree42a03e5c7d5fc36ade906b38511d55438eb8c0bf
parentabc8b974597fbb4bc076df647db05cd7a49b6f98 (diff)
downloademacs-6e5d9ec5684c8888ad2a8d6a2d6647c0d90d9ea2.tar.gz
emacs-6e5d9ec5684c8888ad2a8d6a2d6647c0d90d9ea2.zip
(dired-internal-noselect): Call either dired-mode or MODE, but not both.
-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."
523 ;; if it was the name of a directory at all. 523 ;; if it was the name of a directory at all.
524 (file-name-directory dirname)) 524 (file-name-directory dirname))
525 (or switches (setq switches dired-listing-switches)) 525 (or switches (setq switches dired-listing-switches))
526 (dired-mode dirname switches) 526 (if mode (funcall mode)
527 (if mode (funcall mode)) 527 (dired-mode dirname switches))
528 ;; default-directory and dired-actual-switches are set now 528 ;; default-directory and dired-actual-switches are set now
529 ;; (buffer-local), so we can call dired-readin: 529 ;; (buffer-local), so we can call dired-readin:
530 (let ((failed t)) 530 (let ((failed t))