aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJuri Linkov2019-10-27 02:20:15 +0300
committerJuri Linkov2019-10-27 02:20:15 +0300
commitc6667cc6a958e06fd43fb1ee0e80753adfefa49d (patch)
tree601b9860dbd0d6cc90e4ca809050c4bd511c575f /doc
parent1660f5875c6022ba4f342a53efadfc4d2deb150a (diff)
downloademacs-c6667cc6a958e06fd43fb1ee0e80753adfefa49d.tar.gz
emacs-c6667cc6a958e06fd43fb1ee0e80753adfefa49d.zip
dired-dwim-target uses most recently visited window instead of next window.
* doc/emacs/dired.texi (Operating on Files): Document behavior change. * lisp/dired-aux.el (dired-dwim-target-directories): New function. (dired-dwim-target-directory, dired-dwim-target-defaults): Use it to get the most recently used window instead of the next window (bug#35385). * lisp/dired.el (dired-dwim-target): Doc fix. * test/lisp/dired-tests.el: Remove unnecessary require and pacify byte-compiler.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/dired.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi
index 4ada2a8df4f..c32255a86db 100644
--- a/doc/emacs/dired.texi
+++ b/doc/emacs/dired.texi
@@ -655,8 +655,9 @@ commands, use the same conventions to decide which files to work on.
655copy and rename files or create links for them, try to guess the default 655copy and rename files or create links for them, try to guess the default
656target directory for the operation. Normally, they suggest the Dired 656target directory for the operation. Normally, they suggest the Dired
657buffer's default directory, but if the variable @code{dired-dwim-target} 657buffer's default directory, but if the variable @code{dired-dwim-target}
658is non-@code{nil}, and if there is another Dired buffer displayed in the 658is non-@code{nil}, and if there is another Dired buffer displayed in one
659next window, that other buffer's directory is suggested instead. 659of the most recently used windows, that other buffer's directory is
660suggested instead.
660 661
661 Here are the file-manipulating Dired commands that operate on files. 662 Here are the file-manipulating Dired commands that operate on files.
662 663