diff options
| author | Leo Vivier | 2020-05-15 00:03:18 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2020-05-15 10:18:27 +0300 |
| commit | e75f6be6cc117b0a30158a47c3231035f8ccdc20 (patch) | |
| tree | d4e43b23eb5a0e524d4d4e3b7daca315b34f3f7e | |
| parent | 406fb0746c8b54869302d50b2327333769b7604b (diff) | |
| download | emacs-e75f6be6cc117b0a30158a47c3231035f8ccdc20.tar.gz emacs-e75f6be6cc117b0a30158a47c3231035f8ccdc20.zip | |
Fix dired default file operation (bug#41261)
* lisp/dired-aux.el (dired-dwim-target-directories): Restore
pre-emacs-27 behavior of 'dired-dwim-target'.
| -rw-r--r-- | lisp/dired-aux.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 0069c1744dc..7f988540c2c 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -2002,10 +2002,9 @@ Optional arg HOW-TO determines how to treat the target. | |||
| 2002 | (format prompt (dired-mark-prompt arg files)) dir default)) | 2002 | (format prompt (dired-mark-prompt arg files)) dir default)) |
| 2003 | 2003 | ||
| 2004 | (defun dired-dwim-target-directories () | 2004 | (defun dired-dwim-target-directories () |
| 2005 | (cond ((functionp dired-dwim-target) | 2005 | (if (functionp dired-dwim-target) |
| 2006 | (funcall dired-dwim-target)) | 2006 | (funcall dired-dwim-target) |
| 2007 | (dired-dwim-target | 2007 | (dired-dwim-target-next))) |
| 2008 | (dired-dwim-target-next)))) | ||
| 2009 | 2008 | ||
| 2010 | (defun dired-dwim-target-next (&optional all-frames) | 2009 | (defun dired-dwim-target-next (&optional all-frames) |
| 2011 | ;; Return directories from all next windows with dired-mode buffers. | 2010 | ;; Return directories from all next windows with dired-mode buffers. |