Variable: duplicate-region-final-position

duplicate-region-final-position is a customizable variable defined in misc.el.gz.

Value

0

Documentation

Where the region ends up after duplicating a region with duplicate-dwim.

When 0, leave the region in place. When 1, put the region around the first copy. When -1, put the region around the last copy.

This variable was added, or its default value changed, in Emacs 30.1.

Probably introduced at or before Emacs version 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/misc.el.gz
(defcustom duplicate-region-final-position 0
  "Where the region ends up after duplicating a region with `duplicate-dwim'.
When 0, leave the region in place.
When 1, put the region around the first copy.
When -1, put the region around the last copy."
  :type '(choice (const :tag "Leave region in place" 0)
                 (const :tag "Put region around first copy" 1)
                 (const :tag "Put region around last copy" -1))
  :group 'editing
  :version "30.1")