1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00

Fix dired default file operation (bug#41261)

* lisp/dired-aux.el (dired-dwim-target-directories): Restore
pre-emacs-27 behavior of 'dired-dwim-target'.
This commit is contained in:
Leo Vivier 2020-05-15 00:03:18 +02:00 committed by Eli Zaretskii
parent 406fb0746c
commit e75f6be6cc

View File

@ -2002,10 +2002,9 @@ Optional arg HOW-TO determines how to treat the 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.