summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2019-11-12 23:21:14 +0200
committerJuri Linkov <juri@linkov.net>2019-11-12 23:21:14 +0200
commitd0351f4d2010e3e8f3ada04b045dede10f110d7f (patch)
treee7fa73d650e3149372ec15bc98acc1dfe0b9c01c /doc
parent4cccf7659a4767274b383e5fc820e27391988cc7 (diff)
downloademacs-d0351f4d2010e3e8f3ada04b045dede10f110d7f.tar.gz
* lisp/dired.el (dired-dwim-target): Add new choices (bug#35385)
* lisp/dired.el (dired-dwim-target): Add choices dired-dwim-target-next and dired-dwim-target-recent. * lisp/dired-aux.el (dired-dwim-target-next) (dired-dwim-target-recent): New functions. (dired-dwim-target-directories): Call either of them. * doc/emacs/dired.texi (Operating on Files): Mention new preferences in dired-dwim-target.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/dired.texi10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi
index c32255a86db..8fab508dea6 100644
--- a/doc/emacs/dired.texi
+++ b/doc/emacs/dired.texi
@@ -654,10 +654,12 @@ commands, use the same conventions to decide which files to work on.
Commands which ask for a destination directory, such as those which
copy and rename files or create links for them, try to guess the default
target directory for the operation. Normally, they suggest the Dired
-buffer's default directory, but if the variable @code{dired-dwim-target}
-is non-@code{nil}, and if there is another Dired buffer displayed in one
-of the most recently used windows, that other buffer's directory is
-suggested instead.
+buffer's default directory, but if the option @code{dired-dwim-target}
+is non-@code{nil}, and if there is another Dired buffer displayed in
+some window, that other buffer's directory is suggested instead.
+You can customize @code{dired-dwim-target} to prefer either the next
+window with a Dired buffer, or the most recently used window with
+a Dired buffer.
Here are the file-manipulating Dired commands that operate on files.