From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Selection changes Date: Fri, 16 Jul 2010 22:56:52 -0400 Message-ID: <87eif2n7d7.fsf@stupidchicken.com> References: <87ocea2ax1.fsf@stupidchicken.com> <4C40FCEC.9030404@harpegolden.net> <87pqym2a4r.fsf@catnip.gol.com> <4C411552.40003@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279335434 15243 80.91.229.12 (17 Jul 2010 02:57:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Jul 2010 02:57:14 +0000 (UTC) Cc: emacs-devel@gnu.org, Miles Bader To: David De La Harpe Golden Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 17 04:57:12 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 1OZxaR-0002rp-Nj for ged-emacs-devel@m.gmane.org; Sat, 17 Jul 2010 04:57:12 +0200 Original-Received: from localhost ([127.0.0.1]:41163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZxaK-0001MW-9q for ged-emacs-devel@m.gmane.org; Fri, 16 Jul 2010 22:57:04 -0400 Original-Received: from [140.186.70.92] (port=44926 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZxaE-0001M8-R1 for emacs-devel@gnu.org; Fri, 16 Jul 2010 22:57:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZxaD-0002mQ-5t for emacs-devel@gnu.org; Fri, 16 Jul 2010 22:56:58 -0400 Original-Received: from pantheon-po14.its.yale.edu ([130.132.50.23]:35298) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZxa9-0002lz-KF; Fri, 16 Jul 2010 22:56:53 -0400 Original-Received: from furry (dhcp128036014221.central.yale.edu [128.36.14.221]) (authenticated bits=0) by pantheon-po14.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o6H2uqHS017300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 16 Jul 2010 22:56:52 -0400 Original-Received: by furry (Postfix, from userid 1000) id C7180C013; Fri, 16 Jul 2010 22:56:52 -0400 (EDT) In-Reply-To: <4C411552.40003@harpegolden.net> (David De La Harpe Golden's message of "Sat, 17 Jul 2010 03:28:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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:127474 Archived-At: David De La Harpe Golden writes: > with both x-select-enables on: > > C-y in emacs gives you clipboard for a while, until you select > something else in emacs, which causes emacs to set and prefer primary, > then it gives you primary for a bit when you C-y (or the kill ring > head), then you go "wtf?" and select then C-c again in $app, and you > get clipboard for a bit when you C-y in emacs, until you select more > text, then C-y gives you primary, but then you C-v in $app and you > still get clipboard, but C-y in emacs still gives you primary... Yes, with select-active-regions enabled, it is a serious problem if C-SPC and making an active region messes with the primary. So, for the moment, I went ahead and changed x-select-enable-primary to nil, as you requested. But I think select-active-regions needs further improvement. Perhaps its default behavior should be as follows: for an active region created using shift-selection or mouse dragging, Emacs supplies the region text to primary. When such a region is deactivated, Emacs disowns primary (as some other apps do, tho not Firefox). For an active region created simply with C-SPC, no special x-selection handling should be performed. We could give select-active-regions a new default value, `shift-select', which would have the above meaning.