Variable: dired-keep-marker-rename

dired-keep-marker-rename is a customizable variable defined in dired.el.gz.

Value

t

Documentation

Controls marking of renamed files.

If t, files keep their previous marks when they are renamed. If a character, renamed files (whether previously marked or not) are afterward marked with that character. This option affects only files renamed by dired-do-rename and dired-do-rename-regexp. See wdired-keep-marker-rename if you want to do the same for files renamed in WDired mode.

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defcustom dired-keep-marker-rename t
  ;; Use t as default so that moved files "take their markers with them".
  "Controls marking of renamed files.
If t, files keep their previous marks when they are renamed.
If a character, renamed files (whether previously marked or not)
are afterward marked with that character.
This option affects only files renamed by `dired-do-rename' and
`dired-do-rename-regexp'.  See `wdired-keep-marker-rename'
if you want to do the same for files renamed in WDired mode."
  :type '(choice (const :tag "Keep" t)
		 (character :tag "Mark" :value ?R))
  :group 'dired-mark)