From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Selection changes in revno 100822 Date: Mon, 16 Aug 2010 01:23:57 -0400 Message-ID: References: <834oeyv3ww.fsf@gnu.org> <87mxsqyp98.fsf@stupidchicken.com> <83zkwptyij.fsf@gnu.org> <4C66660D.3090603@swipnet.se> <83sk2htp82.fsf@gnu.org> <4C66A8C5.4040203@harpegolden.net> <83hbixte8c.fsf@gnu.org> <4C66D081.908@harpegolden.net> <838w48u9fg.fsf@gnu.org> <8739ugrniw.fsf@uwakimon.sk.tsukuba.ac.jp> <87tymvb4uv.fsf@uwakimon.sk.tsukuba.ac.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1281936257 20038 80.91.229.12 (16 Aug 2010 05:24:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Aug 2010 05:24:17 +0000 (UTC) Cc: david@harpegolden.net, cyd@stupidchicken.com, jan.h.d@swipnet.se, drew.adams@oracle.com, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 16 07:24:15 2010 Return-path: Envelope-to: ged-emacs-devel@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 1OksBC-0005Hz-RE for ged-emacs-devel@m.gmane.org; Mon, 16 Aug 2010 07:24:15 +0200 Original-Received: from localhost ([127.0.0.1]:56082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OksBC-0005eH-5i for ged-emacs-devel@m.gmane.org; Mon, 16 Aug 2010 01:24:14 -0400 Original-Received: from [199.232.76.173] (port=45951 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OksB0-0005dE-48 for emacs-devel@gnu.org; Mon, 16 Aug 2010 01:24:02 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OksAy-00071l-VA for emacs-devel@gnu.org; Mon, 16 Aug 2010 01:24:01 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:40430) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OksAy-00071g-Ol for emacs-devel@gnu.org; Mon, 16 Aug 2010 01:24:00 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OksAv-0002Wk-6V; Mon, 16 Aug 2010 01:23:57 -0400 In-reply-to: <87tymvb4uv.fsf@uwakimon.sk.tsukuba.ac.jp> (stephen@xemacs.org) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128775 Archived-At: > From: "Stephen J. Turnbull" > Cc: "'Eli Zaretskii'" , > , > , > , > "'David De La Harpe Golden'" > Date: Mon, 16 Aug 2010 12:42:32 +0900 > > ;; This works in XEmacs, I dunno about Emacs > (define-key global-map 'mouse-2 #'mouse-yank) (global-set-key [mouse-2] 'mouse-yank-at-click) > The "bogus association" I'm referring to is where Emacsen copy the X > primary selection to the kill ring under certain circumstances. This > tends to pollute the kill ring (or other clipboard feature) with > ephemeral text. AFAIU, in GNU Emacs (under the old behavior prior to revno 100822) the relation between the primary selection and the kill ring was asymmetrical: killed text would set PRIMARY, but changes in PRIMARY would not modify the kill ring, _except_ if the user pasted it in some manner into the current session. The idea was that if the user pasted the selection, it is not exactly "ephemeral" for her, and does not constitute pollution. > Is X secondary selection available by default in Emacs? Yes, we have this in mouse.el: (global-set-key [M-mouse-1] 'mouse-start-secondary) (global-set-key [M-drag-mouse-1] 'mouse-set-secondary) (global-set-key [M-down-mouse-1] 'mouse-drag-secondary) (global-set-key [M-mouse-3] 'mouse-secondary-save-then-kill) (global-set-key [M-mouse-2] 'mouse-yank-secondary)