Variable: dired-do-revert-buffer
dired-do-revert-buffer is a customizable variable defined in
dired-aux.el.gz.
Value
nil
Documentation
Automatically revert Dired buffers after dired-do operations.
This option controls whether to refresh the directory listing in a
Dired buffer that is the destination of one of these operations:
dired-do-copy, dired-do-rename, dired-do-symlink, dired-do-hardlink.
If the value is t, always revert the Dired buffer updated in the result
of these operations.
If the value is a function, it is called with the destination directory name
as a single argument, and the buffer is reverted after Dired operations
if the function returns non-nil.
This variable was added, or its default value changed, in Emacs 28.1.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defcustom dired-do-revert-buffer nil
"Automatically revert Dired buffers after `dired-do' operations.
This option controls whether to refresh the directory listing in a
Dired buffer that is the destination of one of these operations:
`dired-do-copy', `dired-do-rename', `dired-do-symlink', `dired-do-hardlink'.
If the value is t, always revert the Dired buffer updated in the result
of these operations.
If the value is a function, it is called with the destination directory name
as a single argument, and the buffer is reverted after Dired operations
if the function returns non-nil."
:type '(choice
(const :tag "Don't revert Dired buffers of destination directories"
nil)
(const :tag "Always revert buffers of destination directories" t)
(const :tag "Revert only Dired buffers showing local directories"
(lambda (dir) (not (file-remote-p dir))))
(function :tag "Predicate function to determine whether to revert"))
:group 'dired
:version "28.1")