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: kill-new discards current X selection Date: Wed, 26 Aug 2009 20:36:52 +0100 Message-ID: <4A958ED4.9010000@harpegolden.net> References: <4A95606A.6050606@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 1251316957 19931 80.91.229.12 (26 Aug 2009 20:02:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2009 20:02:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Sam Steingold Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 26 22:02:30 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 1MgOhQ-00053d-RZ for ged-emacs-devel@m.gmane.org; Wed, 26 Aug 2009 22:02:29 +0200 Original-Received: from localhost ([127.0.0.1]:35798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgOhQ-0006gK-AV for ged-emacs-devel@m.gmane.org; Wed, 26 Aug 2009 16:02:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgOIz-0005OO-Ni for emacs-devel@gnu.org; Wed, 26 Aug 2009 15:37:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgOIu-0005KI-Qz for emacs-devel@gnu.org; Wed, 26 Aug 2009 15:37:13 -0400 Original-Received: from [199.232.76.173] (port=56722 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgOIu-0005Jy-MK for emacs-devel@gnu.org; Wed, 26 Aug 2009 15:37:08 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:40314) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgOIp-0002HJ-LX; Wed, 26 Aug 2009 15:37:03 -0400 Original-Received: from [87.198.47.209] (87-198-47-209.ptr.magnet.ie [87.198.47.209]) (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 7BD6D86C5; Wed, 26 Aug 2009 20:37:01 +0100 (IST) User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) In-Reply-To: <4A95606A.6050606@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:114632 Archived-At: Sam Steingold wrote: > When I select a word in an xterm and then kill in emacs, then X > selection is gone forever, replaced with the emacs kill. > The appended patch prepends the current X selection to kill-ring before > replacing the X selection with the current Emacs kill. > Is it OK to install it unconditionally, or is it better to guard it with > a user option, e.g., save-interprogram-paste-before-kill? > I'd certainly like that to be optional if it's going in at all. That's not to say it's necessarily a bad feature. But it's not usual behaviour in the slightest. "the" x selection is also an inaccurate way of looking at things - if you had turned off x-select-enable-primary and turned on x-select-enable-clipboard, then killing in emacs wouldn't (necessarily) nuke the xterm's primary, as killing would be going to the clipboard. Of course, since you can't specify incoming and outgoing behaviour separately (a feature that was however part of my "giant matrix of every silly selection behaviour possible" patch a good while back), you also couldn't pull in primary upon yanking with those settings... OTOH, if you'd set emacs select-active-regions, primary might be gone already if you used a region to define what to kill, as that would cause emacs to send whatever's highlighted onscreen in emacs straight to primary (but not clipboard!).