Variable: delete-selection-temporary-region

delete-selection-temporary-region is a customizable variable defined in delsel.el.gz.

Value

nil

Documentation

Whether to delete only temporary regions.

When non-nil, typed text replaces only the regions set by mouse-dragging, shift-selection, and "\\[universal-argument] \\[exchange-point-and-mark]" when transient-mark-mode(var)/transient-mark-mode(fun) is turned off. If the value is the symbol selection, then replace only the regions set by mouse-dragging and shift-selection.

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

View in manual

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/delsel.el.gz
(defcustom delete-selection-temporary-region nil
  "Whether to delete only temporary regions.
When non-nil, typed text replaces only the regions set by
mouse-dragging, shift-selection, and \"\\[universal-argument] \\[exchange-point-and-mark]\" when
`transient-mark-mode' is turned off.  If the value is the symbol
`selection', then replace only the regions set by mouse-dragging
and shift-selection."
  :version "29.1"
  :group 'editing-basics
  :type '(choice (const :tag "Replace all regions" nil)
                 (const :tag "Replace region from mouse, shift-selection, and \"C-u C-x C-x\"" t)
                 (const :tag "Replace region from mouse and shift-selection" selection)))