From 923b89248cb79d3185264f1175099d549fdaa5bf Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 29 Sep 2021 19:10:00 +0200 Subject: [PATCH] Cross reference `dired-do-revert-buffer' * lisp/dired-aux.el (dired-do-copy): (dired-do-symlink): (dired-do-hardlink): (dired-do-rename): Mention `dired-do-revert-buffer'. --- etc/NEWS | 1 + lisp/dired-aux.el | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 4726827b7a6..0a8249e298a 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1206,6 +1206,7 @@ If set to non-nil, Dired will dereference symbolic links when copying. This can be switched off on a per-usage basis by providing 'dired-do-copy' with a 'C-u' prefix. +--- *** New user option 'dired-do-revert-buffer'. Non-nil reverts the destination Dired buffer after performing one of these operations: 'dired-do-copy', 'dired-do-rename', diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 397c5c67cb0..4b8d2710715 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -2398,7 +2398,9 @@ But if `dired-copy-dereference' is non-nil, the symbolic links are dereferenced and then copied, similar to the \"-L\" option for the \"cp\" shell command. If ARG is a cons with element 4 (`\\[universal-argument]'), the inverted value of -`dired-copy-dereference' will be used." +`dired-copy-dereference' will be used. + +Also see `dired-do-revert-buffer'." (interactive "P") (let ((dired-recursive-copies dired-recursive-copies) (dired-copy-dereference (if (equal arg '(4)) @@ -2419,7 +2421,9 @@ with the same names that the files currently have. The default suggested for the target directory depends on the value of `dired-dwim-target', which see. -For relative symlinks, use \\[dired-do-relsymlink]." +For relative symlinks, use \\[dired-do-relsymlink]. + +Also see `dired-do-revert-buffer'." (interactive "P") (dired-do-create-files 'symlink #'make-symbolic-link "Symlink" arg dired-keep-marker-symlink)) @@ -2432,7 +2436,9 @@ When operating on multiple or marked files, you specify a directory and new hard links are made in that directory with the same names that the files currently have. The default suggested for the target directory depends on the value of -`dired-dwim-target', which see." +`dired-dwim-target', which see. + +Also see `dired-do-revert-buffer'." (interactive "P") (dired-do-create-files 'hardlink #'dired-hardlink "Hardlink" arg dired-keep-marker-hardlink)) @@ -2451,7 +2457,9 @@ When renaming just the current file, you specify the new name. When renaming multiple or marked files, you specify a directory. This command also renames any buffers that are visiting the files. The default suggested for the target directory depends on the value -of `dired-dwim-target', which see." +of `dired-dwim-target', which see. + +Also see `dired-do-revert-buffer'." (interactive "P") (dired-do-create-files 'move #'dired-rename-file "Move" arg dired-keep-marker-rename "Rename")) -- 2.39.5