diff options
author | Juri Linkov <juri@jurta.org> | 2009-11-25 17:15:19 +0000 |
---|---|---|
committer | Juri Linkov <juri@jurta.org> | 2009-11-25 17:15:19 +0000 |
commit | e237085f039fd84695c0ccd7ffba68b1d218b361 (patch) | |
tree | 69f5ae86e98ccac8c64c01e423db373b99f86739 /etc | |
parent | 7d371eac644665cdc4afcac57e7a09560e010a31 (diff) | |
download | emacs-e237085f039fd84695c0ccd7ffba68b1d218b361.tar.gz |
Provide additional default values (directories at other Dired
windows) via M-n in the minibuffer of some Dired commands.
* dired-aux.el (dired-diff, dired-compare-directories)
(dired-do-create-files): Use `dired-dwim-target-defaults' to set
`minibuffer-default' in `minibuffer-with-setup-hook'.
(dired-dwim-target-directory): Find a window that displays Dired
buffer instead of failing when the next window is not Dired.
Use `get-window-with-predicate' to find for the next Dired window.
(dired-dwim-target-defaults): New function.
* ediff-util.el (ediff-read-file-name):
Use `dired-dwim-target-defaults' to set `minibuffer-default'
in `minibuffer-with-setup-hook'.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -152,7 +152,9 @@ when the value of the new variable `completions-format' is `vertical'. ** M-n provides more default values in the minibuffer of commands that read a file and directory name: a file name at point (when ffap is loaded -without ffap-bindings), a file name on the current line in the Dired buffer. +without ffap-bindings), a file name on the current line in the Dired buffer, +a directory name of adjacent Dired windows for Dired commands that can +operate on several directories (copy, rename, diff). ** M-r is bound to the new `move-to-window-line-top-bottom' to mirror the new behavior of C-l in Emacs-23.1. |