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