diff lisp/dired.el @ 22355:80bf6e97360b

(dired-internal-noselect): Call either dired-mode or MODE, but not both.
author André Spiegel <spiegel@gnu.org>
date Fri, 05 Jun 1998 12:46:02 +0000
parents ebcc36b6b95e
children 457d119af57c
line wrap: on
line diff
--- a/lisp/dired.el	Thu Jun 04 16:00:44 1998 +0000
+++ b/lisp/dired.el	Fri Jun 05 12:46:02 1998 +0000
@@ -523,8 +523,8 @@
 	    ;; 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))