Variable: select-active-regions

select-active-regions is a customizable variable defined in keyboard.c.

Value

t

Documentation

If non-nil, an active region automatically sets the primary selection.

If the value is only, only temporarily active regions (usually made by mouse-dragging or shift-selection) set the window selection.

This takes effect only when Transient Mark mode is enabled.

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

Probably introduced at or before Emacs version 23.2.

Source Code

// Defined in /usr/src/emacs/src/keyboard.c
  DEFVAR_LISP ("select-active-regions",
	       Vselect_active_regions,
	       doc: /* If non-nil, an active region automatically sets the primary selection.
If the value is `only', only temporarily active regions (usually made
by mouse-dragging or shift-selection) set the window selection.

This takes effect only when Transient Mark mode is enabled.  */);