From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wojciech Meyer Newsgroups: gmane.emacs.devel Subject: Re: Selection changes Date: Sat, 17 Jul 2010 11:50:44 +0100 Message-ID: <87bpa6e60r.fsf@gmail.com> References: <87ocea2ax1.fsf@stupidchicken.com> <4C40FCEC.9030404@harpegolden.net> <87pqym2a4r.fsf@catnip.gol.com> <4C411552.40003@harpegolden.net> <87eif2n7d7.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279363900 18980 80.91.229.12 (17 Jul 2010 10:51:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Jul 2010 10:51:40 +0000 (UTC) Cc: Miles Bader , emacs-devel@gnu.org, David De La Harpe Golden To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 17 12:51:36 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 1Oa4zX-0003sQ-OF for ged-emacs-devel@m.gmane.org; Sat, 17 Jul 2010 12:51:36 +0200 Original-Received: from localhost ([127.0.0.1]:55238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oa4zX-0003ic-7u for ged-emacs-devel@m.gmane.org; Sat, 17 Jul 2010 06:51:35 -0400 Original-Received: from [140.186.70.92] (port=40794 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oa4zS-0003iN-30 for emacs-devel@gnu.org; Sat, 17 Jul 2010 06:51:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oa4zQ-0000Wv-Mw for emacs-devel@gnu.org; Sat, 17 Jul 2010 06:51:29 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:47240) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oa4zM-0000Ve-LI; Sat, 17 Jul 2010 06:51:24 -0400 Original-Received: by wyj26 with SMTP id 26so3182935wyj.0 for ; Sat, 17 Jul 2010 03:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=985valMBCQPJWLBkiTXGdPztY1Ppeptw+K5SEpKvYTo=; b=X42uIcz9EdgwWbC4NKOb00PMeJI+IBnebecsdMXpx4iarnRkp614nOvpDsTWNLNEzm tV/VqealpUKwiRO8k6icfhpsj6yr1omqjdK9al7iFsh0tX0EftMlvPAZvzfBkGDokfkp OT586WwlEScMPJVcx+k2Qwmzje/tpHDbEIcFM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=XqI1HxGmpZfCLkm60dffjObh9bN2ntaIF+y3wGdt7Stx0skmlgHKVSd1yb6/BiZJIz /ic1SUgIRv5vmuNwW28j3sBOwmaZ1hD+7uTMwvnf/Cm2J6bYwLyq5h2UcMEEvM4t+ik+ Tqdni7gaUqHRh7XEGMo25k+pgOuCh8iDM9h9w= Original-Received: by 10.216.187.16 with SMTP id x16mr1707656wem.104.1279363882883; Sat, 17 Jul 2010 03:51:22 -0700 (PDT) Original-Received: from spec-desktop.specuu.com (host86-137-129-202.range86-137.btcentralplus.com [86.137.129.202]) by mx.google.com with ESMTPS id k46sm1183246weq.34.2010.07.17.03.51.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 17 Jul 2010 03:51:22 -0700 (PDT) In-Reply-To: <87eif2n7d7.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 16 Jul 2010 22:56:52 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:127507 Archived-At: Chong Yidong writes: > 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. General idea: how about having a prefix key (like C-M w)? Next command which is kill or yank will perform operation on a native clipboard. Just 2 cents. Wojciech