From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7196: 24.0.50; NEWS item "Selection changes" Date: Fri, 15 Oct 2010 13:36:04 +0200 Message-ID: <834ocnd6xn.fsf@gnu.org> References: <861FD1851FD742E4A821C8ECDDB11A55@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1287142961 22159 80.91.229.12 (15 Oct 2010 11:42:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2010 11:42:41 +0000 (UTC) Cc: 7196@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 15 13:42:39 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6igI-0001gP-9o for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 13:42:38 +0200 Original-Received: from localhost ([127.0.0.1]:36532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6igH-0003MR-Mw for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 07:42:37 -0400 Original-Received: from [140.186.70.92] (port=50469 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6ig2-0003Em-6l for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 07:42:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6ig0-000165-9A for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 07:42:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6ig0-00015v-7Q for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 07:42:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P6iWz-0004YC-Oc; Fri, 15 Oct 2010 07:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Oct 2010 11:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7196 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7196-submit@debbugs.gnu.org id=B7196.128714235417485 (code B ref 7196); Fri, 15 Oct 2010 11:33:01 +0000 Original-Received: (at 7196) by debbugs.gnu.org; 15 Oct 2010 11:32:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6iWX-0004Xy-NE for submit@debbugs.gnu.org; Fri, 15 Oct 2010 07:32:34 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6iWV-0004Xr-NQ for 7196@debbugs.gnu.org; Fri, 15 Oct 2010 07:32:32 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LAB00700XJDWH00@a-mtaout22.012.net.il> for 7196@debbugs.gnu.org; Fri, 15 Oct 2010 13:36:05 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.93.189]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LAB006MKXK3MLD0@a-mtaout22.012.net.il>; Fri, 15 Oct 2010 13:36:05 +0200 (IST) In-reply-to: <861FD1851FD742E4A821C8ECDDB11A55@us.oracle.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 15 Oct 2010 07:33:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40908 Archived-At: > From: "Drew Adams" > Date: Tue, 12 Oct 2010 07:56:40 -0700 > Cc: > > The NEWS item is woefully incomplete. It doesn't explain much of > anything about the selection changes for Emacs 24 - and they are > radical changes. > > Among other things, NEWS should detail the differences from the > previous behavior, and explain clearly how to return to the > previous behavior (exactly, completely). The new text is reproduced below. If it is good enough, this bug report can be closed. ** Selection changes. The default handling of clipboard and primary selections has been changed to conform with other X applications. The new behavior is that by default Emacs does not put text into the clipboard, and does not add it to kill-ring, merely because the text was selected. Only commands that kill text or copy it to the kill-ring (C-w, M-w, C-k, etc.) put the killed text into the clipboard. Selected text is put into the primary selection (on systems, such as X, that support the primary selection separately from the clipboard). Similarly, Emacs by default does not retrieve text from the clipboard when the mouse (e.g., mouse-2) is used for pasting text selected in another application. Text from the clipboard is retrieved only by C-y, M-y and other commands that yank text from the kill-ring. Mouse commands that paste text retrieve text from the primary selection, on systems that support it separately from the clipboard. In other words, the default behavior is that mouse gestures that select and paste text work with the primary selection, while keyboard commands that kill/copy and paste text work with the clipboard. This change also means that the "Copy", "Cut", and "Paste" items of the menu-bar "Edit" menu are now exactly equivalent to, respectively M-w, C-w, and C-y. To get back the previous behavior, whereby mouse gestures set the clipboard and retrieve text from there, customize the variables `mouse-drag-copy-region' and (on X only) `x-select-enable-primary'. If you don't want Emacs to put the text into the clipboard, only to the primary selection, additionally customize `x-select-enable-clipboard' to nil. These changes in the default behavior are reflected in the default values of several variables: *** `select-active-regions' now defaults to t, so active regions set the primary selection. It was nil in previous versions. It also accepts a new value, `only', which means to only set the primary selection for temporarily active regions (usually made by mouse-dragging or shift-selection). *** `mouse-2' is now bound to `mouse-yank-primary'. Previously, it was bound to `mouse-yank-at-click' (which is now unbound by default. *** `x-select-enable-clipboard' now defaults to t on all platforms. Thus, killing and yanking now use the clipboard (in addition to the kill ring). Note that this variable was already non-nil by default on MS-Windows, which does not support the primary selection between applications. *** `x-select-enable-primary' now defaults to nil. This variable exists only on X; its default value was t in previous versions. *** `mouse-drag-copy-region' now defaults to nil. Its previous default value was t. *** Support for X cut buffers has been removed.