aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov2009-11-25 17:15:19 +0000
committerJuri Linkov2009-11-25 17:15:19 +0000
commite237085f039fd84695c0ccd7ffba68b1d218b361 (patch)
tree69f5ae86e98ccac8c64c01e423db373b99f86739 /etc
parent7d371eac644665cdc4afcac57e7a09560e010a31 (diff)
downloademacs-e237085f039fd84695c0ccd7ffba68b1d218b361.tar.gz
emacs-e237085f039fd84695c0ccd7ffba68b1d218b361.zip
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/NEWS4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 58ff7c6705f..2f288cba045 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -152,7 +152,9 @@ when the value of the new variable `completions-format' is `vertical'.
152 152
153** M-n provides more default values in the minibuffer of commands that 153** M-n provides more default values in the minibuffer of commands that
154read a file and directory name: a file name at point (when ffap is loaded 154read a file and directory name: a file name at point (when ffap is loaded
155without ffap-bindings), a file name on the current line in the Dired buffer. 155without ffap-bindings), a file name on the current line in the Dired buffer,
156a directory name of adjacent Dired windows for Dired commands that can
157operate on several directories (copy, rename, diff).
156 158
157** M-r is bound to the new `move-to-window-line-top-bottom' 159** M-r is bound to the new `move-to-window-line-top-bottom'
158to mirror the new behavior of C-l in Emacs-23.1. 160to mirror the new behavior of C-l in Emacs-23.1.