Let all active regions set the primary selection.
authorChong Yidong <cyd@stupidchicken.com>
Mon, 16 Aug 2010 02:33:17 +0000 (22:33 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 16 Aug 2010 02:33:17 +0000 (22:33 -0400)
commit7c23dd4468eb42dbe7e3f40339c6fda9f9905d0e
treefc6daa2c1cf95788332e4216b8293dc5616ee73b
parent6d3e82d2d656d7ed27b374f62c320c7d58348248
Let all active regions set the primary selection.
This includes both temporarily active regions (mouse drag and
shift-select) and those made with C-SPC and cursor motion.

* lisp/cus-start.el: Change defcustom for select-active-regions.

* lisp/simple.el (deactivate-mark): If select-active-regions is `only',
only set selection for temporarily active regions.

* src/insdel.c (prepare_to_modify_buffer): Handle `only' value of
select-active-regions.

* src/keyboard.c (command_loop_1): Avoid setting selection twice,
since it's done in deactivate-mark as well.
(Vselect_active_regions): Replace `lazy' value with `only',
meaning to only set PRIMARY for temporarily active regions.
etc/NEWS
lisp/ChangeLog
lisp/cus-start.el
lisp/simple.el
src/ChangeLog
src/insdel.c
src/keyboard.c