Variable: deactivate-mark
deactivate-mark is a buffer-local variable defined in keyboard.c.
Documentation
Whether to deactivate the mark after an editing command.
The command loop sets this to nil before each command, and tests the value when the command returns. If an editing command sets this non-nil, deactivate the mark after the command returns.
Buffer modifications store t in this variable.
By default, deactivating the mark will save the contents of the region
according to select-active-regions, unless this is set to the symbol
dont-save.
Probably introduced at or before Emacs version 19.29.
Source Code
// Defined in /usr/src/emacs/src/keyboard.c
DEFVAR_LISP ("deactivate-mark", Vdeactivate_mark,
doc: /* Whether to deactivate the mark after an editing command.
The command loop sets this to nil before each command,
and tests the value when the command returns.
If an editing command sets this non-nil, deactivate the mark after
the command returns.
Buffer modifications store t in this variable.
By default, deactivating the mark will save the contents of the region
according to `select-active-regions', unless this is set to the symbol
`dont-save'. */);