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: Sun, 19 Jul 2009 20:36:21 +0100 Message-ID: <4A6375B5.1090406@harpegolden.net> References: <83zlb2p79y.fsf@gnu.org> <4A61D0F6.5040901@harpegolden.net> <83skgup04t.fsf@gnu.org> <87ws6613c7.fsf@cyd.mit.edu> <83ocrhq1sk.fsf@gnu.org> <4A6218EE.8@harpegolden.net> <83iqhppzg5.fsf@gnu.org> <4A63309E.7050903@gnu.org> <83eiscpo6x.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 1248032218 28348 80.91.229.12 (19 Jul 2009 19:36:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jul 2009 19:36:58 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org, Jason Rumney To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 19 21:36:51 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 1MScBm-0008SR-CG for ged-emacs-devel@m.gmane.org; Sun, 19 Jul 2009 21:36:51 +0200 Original-Received: from localhost ([127.0.0.1]:47368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MScBl-0003WJ-MJ for ged-emacs-devel@m.gmane.org; Sun, 19 Jul 2009 15:36:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MScBg-0003TI-Nd for emacs-devel@gnu.org; Sun, 19 Jul 2009 15:36:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MScBc-0003SO-3H for emacs-devel@gnu.org; Sun, 19 Jul 2009 15:36:44 -0400 Original-Received: from [199.232.76.173] (port=40421 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MScBb-0003SL-T2 for emacs-devel@gnu.org; Sun, 19 Jul 2009 15:36:39 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:44721) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MScBY-0007Hh-Ej; Sun, 19 Jul 2009 15:36:36 -0400 Original-Received: from [87.198.47.197] (87-198-47-197.ptr.magnet.ie [87.198.47.197]) (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 B3972814F; Sun, 19 Jul 2009 20:36:33 +0100 (IST) User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) In-Reply-To: <83eiscpo6x.fsf@gnu.org> 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:112769 Archived-At: Eli Zaretskii wrote: > It's analogous in the sense that killing puts text there and yanking > gets text from there. > When killing, emacs on X11 places text in primary if x-select-enable-primary is t clipboard if x-select-enable-clipboard is t When yanking, emacs on x11 gets text from primary if x-select-enable-primary is t clipboard if x-select-enable-clipboard is t (They could maybe be decoupled into incoming and outgoing settings, but that's another story...) So on X11, I: set x-select-enable-primary to nil set x-select-enable-clipboard to t set select-active-regions to t, so that the active region is sent to primary. Now, not all x11 emacs users like that convention, but that's why x11 emacs supports several. I can set things to my liking as above, and all without screwing up things for other emacs users. I don't see why, if for some reason I was using msdos/w16 or w32 emacs (not especially likely for me personally, yay for windows' near total lack of penetration into HPC, but anyway), the native port there shouldn't be able to emulate the convention I like as best it can. i.e. If I'm used to select-active-regions working without clobbering the clipboard on X11, why the holy hell should it clobber the clipboard on Windows? Presumably only self-self primary interactions will work on Windows since emacs emulates primary internally, but they do constitute a distinctly nonzero proportion of my primary interactions. > Anyway, do you think it is better to have this feature effectively > disabled on Windows, than copy into the clipboard? You've missed the option of having it work as on x11 for emacs-emacs interactions (that is _not_ "effectively disabled") but not copying to the clipboard. I don't know why, other than the possibility you've misunderstood some or all of X11 clipboard, X11 primary, or the purpose of select-active-regions. I'm not sure if emacs w32 works under wine, but if it does I can try to look at: (a) making it customizable whether select-active-regions hits the clipboard and/or primary (already sent a patch that does that...) (b) look at using an idle timer hack or something on w32 to make it in fact work right all if told to hit the w32 clipboard (I presently think it will break or at best correspond to pre-bug-#902-fix incorrect behaviour without attention there). (not quite trivial) (c) do so in a manner that _doesn't_ preclude w32's primary emulation being improved in future.