Commit 6e5d9ec5 authored by André Spiegel's avatar André Spiegel
Browse files

(dired-internal-noselect): Call either dired-mode or MODE, but not both.

parent abc8b974
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment