aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChong Yidong2010-08-15 22:33:17 -0400
committerChong Yidong2010-08-15 22:33:17 -0400
commit7c23dd4468eb42dbe7e3f40339c6fda9f9905d0e (patch)
treefc6daa2c1cf95788332e4216b8293dc5616ee73b /etc
parent6d3e82d2d656d7ed27b374f62c320c7d58348248 (diff)
downloademacs-7c23dd4468eb42dbe7e3f40339c6fda9f9905d0e.tar.gz
emacs-7c23dd4468eb42dbe7e3f40339c6fda9f9905d0e.zip
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS21
1 files changed, 12 insertions, 9 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 8e2594d8ace..d489e2d32c7 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -191,23 +191,26 @@ should use delete-char with a negative argument instead.
191 191
192** Selection changes. 192** Selection changes.
193 193
194The way Emacs interacts with the clipboard and primary selection, by 194The default handling of clipboard and primary selections has been
195default, is now similar to other X applications. In particular, kill 195changed to conform with other X applications.
196and yank use the clipboard, in addition to the primary selection.
197 196
198*** `select-active-regions' now defaults to `lazy'. 197*** `select-active-regions' now defaults to t, so active regions set
199This means that any active region made with shift-selection or mouse 198the primary selection.
200dragging, or acted on by Emacs (e.g. with M-w or C-w), is 199
201automatically added to the primary window selection. 200It also accepts a new value, `lazy', which means to only set the
201primary selection for temporarily active regions (usually made by
202mouse-dragging or shift-selection).
203
204*** `mouse-2' is now bound to `mouse-yank-primary'.
202 205
203*** `x-select-enable-clipboard' now defaults to t. 206*** `x-select-enable-clipboard' now defaults to t.
207Thus, killing and yanking now use the clipboard (in addition to the
208kill ring).
204 209
205*** `x-select-enable-primary' now defaults to nil. 210*** `x-select-enable-primary' now defaults to nil.
206 211
207*** `mouse-drag-copy-region' now defaults to nil. 212*** `mouse-drag-copy-region' now defaults to nil.
208 213
209*** `mouse-2' is now bound to `mouse-yank-primary'.
210
211 214
212* Changes in Specialized Modes and Packages in Emacs 24.1 215* Changes in Specialized Modes and Packages in Emacs 24.1
213 216