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:
parent
406fb0746c
commit
e75f6be6cc
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user