diff options
| author | Chong Yidong | 2010-08-15 22:33:17 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-08-15 22:33:17 -0400 |
| commit | 7c23dd4468eb42dbe7e3f40339c6fda9f9905d0e (patch) | |
| tree | fc6daa2c1cf95788332e4216b8293dc5616ee73b /etc | |
| parent | 6d3e82d2d656d7ed27b374f62c320c7d58348248 (diff) | |
| download | emacs-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/NEWS | 21 |
1 files changed, 12 insertions, 9 deletions
| @@ -191,23 +191,26 @@ should use delete-char with a negative argument instead. | |||
| 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. | ||
| 197 | 196 | ||
| 198 | *** `select-active-regions' now defaults to `lazy'. | 197 | *** `select-active-regions' now defaults to t, so active regions set |
| 199 | This means that any active region made with shift-selection or mouse | 198 | the primary selection. |
| 200 | dragging, or acted on by Emacs (e.g. with M-w or C-w), is | 199 | |
| 201 | automatically added to the primary window selection. | 200 | It also accepts a new value, `lazy', which means to only set the |
| 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 | 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 | ||