diff options
| author | Chong Yidong | 2011-01-27 16:41:47 -0500 |
|---|---|---|
| committer | Chong Yidong | 2011-01-27 16:41:47 -0500 |
| commit | b1ab31aeec46fdd1c9f69a54b58800539b15b289 (patch) | |
| tree | 397d341e995b437e1298e05847547b18aedd5429 | |
| parent | db0e305dc03fb1afc7f4311834d8084c30a5119c (diff) | |
| download | emacs-b1ab31aeec46fdd1c9f69a54b58800539b15b289.tar.gz emacs-b1ab31aeec46fdd1c9f69a54b58800539b15b289.zip | |
Edit NEWS entries about selection changes.
| -rw-r--r-- | etc/NEWS | 90 |
1 files changed, 42 insertions, 48 deletions
| @@ -269,54 +269,48 @@ should use delete-char with a negative argument instead. | |||
| 269 | 269 | ||
| 270 | ** Selection changes. | 270 | ** Selection changes. |
| 271 | 271 | ||
| 272 | The default handling of clipboard and primary selections has been | 272 | The default handling of clipboard and primary selections was changed |
| 273 | changed to conform with other X applications. The exact changes are | 273 | to conform with modern X applications. In short, most commands for |
| 274 | described below; in short, mouse commands to select and paste text now | 274 | killing and yanking text now use the clipboard, while mouse commands |
| 275 | use the primary selection, while all other commands for killing and | 275 | use the primary selection. |
| 276 | yanking text now use the clipboard. | 276 | |
| 277 | 277 | In the following, we provide a list of these changes, followed by a | |
| 278 | *** Merely selecting text (e.g. with drag-mouse-1) does not add it to | 278 | list of steps to get the old behavior back if you prefer that. |
| 279 | the kill-ring. On systems with a primary selection separate from the | 279 | |
| 280 | clipboard (such as X), the selected text is put in the primary | 280 | *** `mouse-drag-copy-region' now defaults to nil. |
| 281 | selection. | 281 | *** `select-active-regions' now defaults to t. |
| 282 | 282 | Merely selecting text (e.g. with drag-mouse-1) no longer puts it in | |
| 283 | *** mouse-2 is now bound to `mouse-yank-primary', which pastes from | 283 | the kill-ring. The selected text is put in the primary selection, if |
| 284 | the primary selection regardless of the contents of the kill-ring. | 284 | the system possesses a separate primary selection facility (e.g. X). |
| 285 | 285 | ||
| 286 | *** Commands that kill text or copy it to the kill-ring (M-w, C-w, | 286 | **** `select-active-regions' also accepts a new value, `only'. |
| 287 | C-k, etc.) also put the killed text into the clipboard. This change | 287 | This means to only set the primary selection for temporarily active |
| 288 | also means that the "Copy", "Cut", and "Paste" items in the "Edit" | 288 | regions (usually made by mouse-dragging or shift-selection); |
| 289 | menu are now exactly equivalent to, respectively M-w, C-w, and C-y. | 289 | "ordinary" active regions, such as those made with C-SPC followed by |
| 290 | 290 | point motion, do not alter the primary selection. | |
| 291 | *** Yank commands, such as C-y and M-y, retrieve text from the | 291 | |
| 292 | clipboard if it is available. | 292 | *** mouse-2 is now bound to `mouse-yank-primary'. |
| 293 | 293 | This pastes from the primary selection, ignoring the kill-ring. | |
| 294 | *** The above changes are reflected in the following new defaults: | 294 | Previously, mouse-2 was bound to `mouse-yank-at-click'. |
| 295 | 295 | ||
| 296 | **** `select-active-regions' now defaults to t. | 296 | *** `x-select-enable-clipboard' now defaults to t on all platforms. |
| 297 | It also accepts a new value, `only', which means to only set the | 297 | *** `x-select-enable-primary' now defaults to nil. |
| 298 | primary selection for temporarily active regions (usually made by | 298 | Thus, commands that kill text or copy it to the kill-ring (such as |
| 299 | mouse-dragging or shift-selection). | 299 | M-w, C-w, and C-k) also use the clipboard---not the primary selection. |
| 300 | 300 | ||
| 301 | **** `mouse-2' is now bound to `mouse-yank-primary'. | 301 | **** The "Copy", "Cut", and "Paste" items in the "Edit" menu are now |
| 302 | Previously, it was bound to `mouse-yank-at-click' (which is now | 302 | exactly equivalent to, respectively M-w, C-w, and C-y. |
| 303 | unbound by default). | 303 | |
| 304 | 304 | **** Note that on MS-Windows, `x-select-enable-clipboard' was already | |
| 305 | **** `x-select-enable-clipboard' now defaults to t on all platforms. | 305 | non-nil by default, as Windows does not support the primary selection |
| 306 | Note that this variable was already non-nil by default on MS-Windows, | 306 | between applications. |
| 307 | which does not support the primary selection between applications. | 307 | |
| 308 | 308 | *** To return to the previous behavior, do the following: | |
| 309 | **** `x-select-enable-primary' now defaults to nil. | 309 | |
| 310 | This variable exists only on X; its default value was t in previous | 310 | **** Change `mouse-drag-copy-region' to t. |
| 311 | versions. | 311 | **** Change `x-select-enable-primary' to t (on X only). |
| 312 | 312 | **** Change `x-select-enable-clipboard' to nil. | |
| 313 | **** `mouse-drag-copy-region' now defaults to nil. | 313 | **** Bind `mouse-yank-at-click' to mouse-2. |
| 314 | |||
| 315 | *** To return to the previous behavior, where mouse commands use the | ||
| 316 | clipboard, change `mouse-drag-copy-region' and (on X only) | ||
| 317 | `x-select-enable-primary' to t. If you don't want Emacs to put the | ||
| 318 | text into the clipboard, only to the primary selection, additionally | ||
| 319 | set `x-select-enable-clipboard' to nil. | ||
| 320 | 314 | ||
| 321 | *** Support for X cut buffers has been removed. | 315 | *** Support for X cut buffers has been removed. |
| 322 | 316 | ||