comparison etc/NEWS @ 109802:acc05fd0631b

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.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 15 Aug 2010 22:33:17 -0400
parents 2abe46caa971
children a39d52cde554 fa7968a7972f
comparison
equal deleted inserted replaced
109801:f4192807d8a6 109802:acc05fd0631b
189 189
190 *** The option `mouse-region-delete-keys' has been deleted. 190 *** The option `mouse-region-delete-keys' has been deleted.
191 191
192 ** Selection changes. 192 ** Selection changes.
193 193
194 The way Emacs interacts with the clipboard and primary selection, by 194 The default handling of clipboard and primary selections has been
195 default, is now similar to other X applications. In particular, kill 195 changed to conform with other X applications.
196 and yank use the clipboard, in addition to the primary selection. 196
197 197 *** `select-active-regions' now defaults to t, so active regions set
198 *** `select-active-regions' now defaults to `lazy'. 198 the primary selection.
199 This means that any active region made with shift-selection or mouse 199
200 dragging, or acted on by Emacs (e.g. with M-w or C-w), is 200 It also accepts a new value, `lazy', which means to only set the
201 automatically added to the primary window selection. 201 primary selection for temporarily active regions (usually made by
202 mouse-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.
207 Thus, killing and yanking now use the clipboard (in addition to the
208 kill 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
209 *** `mouse-2' is now bound to `mouse-yank-primary'.
210 213
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
214 ** Archive Mode has basic support to browse 7z archives. 217 ** Archive Mode has basic support to browse 7z archives.