Variable: exchange-point-and-mark-highlight-region

exchange-point-and-mark-highlight-region is a customizable variable defined in simple.el.gz.

Value

t

Documentation

Activate region when exchanging point and mark.

When set to nil, this modifies exchange-point-and-mark so that it doesn't activate the mark if it is not already active, except when there is a prefix argument. Setting this variable to nil effectively swaps the meanings of the presence and absence of a prefix argument to exchange-point-and-mark.

This variable has no effect when Transient Mark mode is off.

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

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defcustom exchange-point-and-mark-highlight-region t
  "Activate region when exchanging point and mark.

When set to nil, this modifies `exchange-point-and-mark' so that it
doesn't activate the mark if it is not already active, except when there
is a prefix argument.  Setting this variable to nil effectively swaps
the meanings of the presence and absence of a prefix argument to
`exchange-point-and-mark'.

This variable has no effect when Transient Mark mode is off."
  :type 'boolean
  :group 'editing-basics
  :version "31.1")