changeset 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 2319cdbf38e5
children a1f8c5a5c3e1
files lisp/dired.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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))