diff options
| author | Eli Zaretskii | 2010-10-15 13:33:17 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2010-10-15 13:33:17 +0200 |
| commit | 7c9b11be16ceb080f052371786ac111ccf8d43fc (patch) | |
| tree | 84495bfca5ac1fac016b4ee095b356007f3444e9 | |
| parent | d1b08c883f9863ac1b79b9a26123611bc10dbc45 (diff) | |
| download | emacs-7c9b11be16ceb080f052371786ac111ccf8d43fc.tar.gz emacs-7c9b11be16ceb080f052371786ac111ccf8d43fc.zip | |
Fix bug #7196.
NEWS: Expand the entry about "Selection changes".
| -rw-r--r-- | etc/NEWS | 46 |
1 files changed, 43 insertions, 3 deletions
| @@ -230,22 +230,62 @@ should use delete-char with a negative argument instead. | |||
| 230 | The default handling of clipboard and primary selections has been | 230 | The default handling of clipboard and primary selections has been |
| 231 | changed to conform with other X applications. | 231 | changed to conform with other X applications. |
| 232 | 232 | ||
| 233 | The new behavior is that by default Emacs does not put text into the | ||
| 234 | clipboard, and does not add it to kill-ring, merely because the text | ||
| 235 | was selected. Only commands that kill text or copy it to the | ||
| 236 | kill-ring (C-w, M-w, C-k, etc.) put the killed text into the | ||
| 237 | clipboard. Selected text is put into the primary selection (on | ||
| 238 | systems, such as X, that support the primary selection separately from | ||
| 239 | the clipboard). | ||
| 240 | |||
| 241 | Similarly, Emacs by default does not retrieve text from the clipboard | ||
| 242 | when the mouse (e.g., mouse-2) is used for pasting text selected in | ||
| 243 | another application. Text from the clipboard is retrieved only by | ||
| 244 | C-y, M-y and other commands that yank text from the kill-ring. Mouse | ||
| 245 | commands that paste text retrieve text from the primary selection, on | ||
| 246 | systems that support it separately from the clipboard. | ||
| 247 | |||
| 248 | In other words, the default behavior is that mouse gestures that | ||
| 249 | select and paste text work with the primary selection, while keyboard | ||
| 250 | commands that kill/copy and paste text work with the clipboard. | ||
| 251 | |||
| 252 | This change also means that the "Copy", "Cut", and "Paste" items of | ||
| 253 | the menu-bar "Edit" menu are now exactly equivalent to, respectively | ||
| 254 | M-w, C-w, and C-y. | ||
| 255 | |||
| 256 | To get back the previous behavior, whereby mouse gestures set the | ||
| 257 | clipboard and retrieve text from there, customize the variables | ||
| 258 | `mouse-drag-copy-region' and (on X only) `x-select-enable-primary'. | ||
| 259 | If you don't want Emacs to put the text into the clipboard, only to | ||
| 260 | the primary selection, additionally customize | ||
| 261 | `x-select-enable-clipboard' to nil. | ||
| 262 | |||
| 263 | These changes in the default behavior are reflected in the default | ||
| 264 | values of several variables: | ||
| 265 | |||
| 233 | *** `select-active-regions' now defaults to t, so active regions set | 266 | *** `select-active-regions' now defaults to t, so active regions set |
| 234 | the primary selection. | 267 | the primary selection. It was nil in previous versions. |
| 235 | 268 | ||
| 236 | It also accepts a new value, `only', which means to only set the | 269 | It also accepts a new value, `only', which means to only set the |
| 237 | primary selection for temporarily active regions (usually made by | 270 | primary selection for temporarily active regions (usually made by |
| 238 | mouse-dragging or shift-selection). | 271 | mouse-dragging or shift-selection). |
| 239 | 272 | ||
| 240 | *** `mouse-2' is now bound to `mouse-yank-primary'. | 273 | *** `mouse-2' is now bound to `mouse-yank-primary'. |
| 274 | Previously, it was bound to `mouse-yank-at-click' (which is now | ||
| 275 | unbound by default. | ||
| 241 | 276 | ||
| 242 | *** `x-select-enable-clipboard' now defaults to t. | 277 | *** `x-select-enable-clipboard' now defaults to t on all platforms. |
| 243 | Thus, killing and yanking now use the clipboard (in addition to the | 278 | Thus, killing and yanking now use the clipboard (in addition to the |
| 244 | kill ring). | 279 | kill ring). Note that this variable was already non-nil by default on |
| 280 | MS-Windows, which does not support the primary selection between | ||
| 281 | applications. | ||
| 245 | 282 | ||
| 246 | *** `x-select-enable-primary' now defaults to nil. | 283 | *** `x-select-enable-primary' now defaults to nil. |
| 284 | This variable exists only on X; its default value was t in previous | ||
| 285 | versions. | ||
| 247 | 286 | ||
| 248 | *** `mouse-drag-copy-region' now defaults to nil. | 287 | *** `mouse-drag-copy-region' now defaults to nil. |
| 288 | Its previous default value was t. | ||
| 249 | 289 | ||
| 250 | *** Support for X cut buffers has been removed. | 290 | *** Support for X cut buffers has been removed. |
| 251 | 291 | ||