Variable: select-active-regions

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

Value

t

Documentation

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

This variable only has an effect when Transient Mark mode is enabled.

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

If this variable causes the region to be set as the primary selection, post-select-region-hook is then run afterwards.

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

View in manual

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, any active region automatically sets the primary selection.
This variable only has an effect when Transient Mark mode is enabled.

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

If this variable causes the region to be set as the primary selection,
`post-select-region-hook' is then run afterwards.  */);