diff options
| author | Juri Linkov | 2019-10-27 02:20:15 +0300 |
|---|---|---|
| committer | Juri Linkov | 2019-10-27 02:20:15 +0300 |
| commit | c6667cc6a958e06fd43fb1ee0e80753adfefa49d (patch) | |
| tree | 601b9860dbd0d6cc90e4ca809050c4bd511c575f /doc | |
| parent | 1660f5875c6022ba4f342a53efadfc4d2deb150a (diff) | |
| download | emacs-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.texi | 5 |
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. | |||
| 655 | copy and rename files or create links for them, try to guess the default | 655 | copy and rename files or create links for them, try to guess the default |
| 656 | target directory for the operation. Normally, they suggest the Dired | 656 | target directory for the operation. Normally, they suggest the Dired |
| 657 | buffer's default directory, but if the variable @code{dired-dwim-target} | 657 | buffer's default directory, but if the variable @code{dired-dwim-target} |
| 658 | is non-@code{nil}, and if there is another Dired buffer displayed in the | 658 | is non-@code{nil}, and if there is another Dired buffer displayed in one |
| 659 | next window, that other buffer's directory is suggested instead. | 659 | of the most recently used windows, that other buffer's directory is |
| 660 | suggested 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 | ||