* lisp/dired-aux.el (dired-dwim-target-directories): Restore
pre-emacs-27 behavior of 'dired-dwim-target'.
(format prompt (dired-mark-prompt arg files)) dir default))
(defun dired-dwim-target-directories ()
- (cond ((functionp dired-dwim-target)
- (funcall dired-dwim-target))
- (dired-dwim-target
- (dired-dwim-target-next))))
+ (if (functionp dired-dwim-target)
+ (funcall dired-dwim-target)
+ (dired-dwim-target-next)))
(defun dired-dwim-target-next (&optional all-frames)
;; Return directories from all next windows with dired-mode buffers.