From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: select-active-regions Date: Sat, 18 Jul 2009 21:15:52 +0100 Message-ID: <4A622D78.7090802@harpegolden.net> References: <83zlb2p79y.fsf@gnu.org> <4A61D0F6.5040901@harpegolden.net> <83skgup04t.fsf@gnu.org> <87ws6613c7.fsf@cyd.mit.edu> <83ocrhq1sk.fsf@gnu.org> <87r5wdu8ns.fsf@stupidchicken.com> <83k525pzmg.fsf@gnu.org> <87iqhp3hqs.fsf@stupidchicken.com> <83fxctpyg1.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247948186 16696 80.91.229.12 (18 Jul 2009 20:16:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2009 20:16:26 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 18 22:16:19 2009 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.50) id 1MSGKQ-0002uk-SL for ged-emacs-devel@m.gmane.org; Sat, 18 Jul 2009 22:16:19 +0200 Original-Received: from localhost ([127.0.0.1]:57543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSGKP-0000rq-TM for ged-emacs-devel@m.gmane.org; Sat, 18 Jul 2009 16:16:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MSGKL-0000rk-VK for emacs-devel@gnu.org; Sat, 18 Jul 2009 16:16:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MSGKH-0000qh-KX for emacs-devel@gnu.org; Sat, 18 Jul 2009 16:16:13 -0400 Original-Received: from [199.232.76.173] (port=35746 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSGKH-0000qY-GC for emacs-devel@gnu.org; Sat, 18 Jul 2009 16:16:09 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:48765) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MSGK5-00059H-W5; Sat, 18 Jul 2009 16:15:58 -0400 Original-Received: from harpegolden.net ([65.99.215.13]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MSGK5-0000sK-CJ; Sat, 18 Jul 2009 16:15:57 -0400 Original-Received: from [87.198.47.126] (87-198-47-126.ptr.magnet.ie [87.198.47.126]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 99B0D8274; Sat, 18 Jul 2009 21:15:54 +0100 (IST) User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) In-Reply-To: <83fxctpyg1.fsf@gnu.org> X-Detected-Operating-System: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:112707 Archived-At: Eli Zaretskii wrote: > Not when you use Emacs, which puts text into clipboard on every kill. > Select-active-regions is essentially not intended to be such an operation though, it quite deliberately avoids placing text on the kill-ring or clipboard on x11 and ONLY sets primary. You're muddling mouse-drag-copy-region and select-active-regions I think. The former affects the kill ring, and typically though not necessarily, x11 select-active-regions users would actually turn off mouse-drag-copy-region as what they probably want is: * keyboard and mouse selection and mouse middle click involves ONLY primary * keyboard/menu/toolbar kill/kill-ring-save/yank (... cut/copy/paste), involves ONLY kill-ring_and_clipboard. Why do they want that? Because it's how quite a lot of other X11 apps work nowadays, if you assume the kill-ring is analogous to an extended clipboard (as e.g. cua-mode clearly assumes when it does its binding trickery). The point was for emacs to optionally (optionally!) support such behaviour, with the following: (setq x-select-enable-clipboard t) (setq x-select-enable-primary nil) (setq mouse-drag-copy-region nil) (setq select-active-regions t) (global-set-key [mouse-2] 'mouse-yank-primary) If you also want C-x/C-c/C-v bindings, you of course also turn on cua-mode.