From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.help Subject: Re: Using the clipboard in development version of Emacs Date: Wed, 13 Oct 2010 18:18:46 +0900 Organization: NEC Electronics Message-ID: References: <87zkvtwhhe.fsf@stats.ox.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291870301 12979 80.91.229.12 (9 Dec 2010 04:51:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 04:51:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 05:51:37 2010 Return-path: Envelope-to: geh-help-gnu-emacs@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 1PQYTh-0002YZ-JP for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 05:51:37 +0100 Original-Received: from localhost ([127.0.0.1]:36703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQYTh-0006Ee-1Y for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 23:51:37 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-X-Trace: individual.net uZeppsQ7Foy1Q/IfiOG4QQFA4jOopkI/ilTZFSXyzgtWWss75q Cancel-Lock: sha1:TfV5JfHigj64M6+uLkxm7JqLcG0= sha1:SlMNSaW3ue0URbc1KxBmnzphpW8= System-Type: x86_64-unknown-linux-gnu Blat: Foop Original-Xref: usenet.stanford.edu gnu.emacs.help:181748 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76683 Archived-At: Stefan Monnier writes: >> Hmm, sorry, I should have done more googling first. I am getting the >> impression that this is work-in-progress, rather than a stable change. > > Actually, while some of the implementation details may still change, the > behavior you describe is the one sought after. It may seem odd after > all these years of using the other behavior, but it is the standard > behavior of most other X applications: the PRIMARY selection and the > CLIPBOARD are 2 separate entities: the PRIMARY is set via "mouse-1 > selection" and used via "mouse-2 paste", and the CLIPBOARD is set/used > via things like C-k/C-y or C-x/C-v. > > Check NEWS (e.g. with C-h N) to see what's changed, and hence how to > change back if you prefer the earlier behavior. What I really want is a way to: (1) use `x-select-enable-primary = t' (so I can insert the x-primary using C-y in emacs -- mouse-only insertion is awful) (2) _but_ avoid the effect of C-y inserting whatever was last selected in emacs (because I use C-w in emacs) (3) _and_ keep the "selecting text in emacs via any method writes to x-primary" behavior I.e., I like the fact that I can select text in emacs via the keyboard, then insert in xterm using middle-button, but I don't want _emacs_ to see the primary text. The only way I think to do this is to make emacs ignore the x-primary if it came from itself. hmm, that shouldn't be tooooo hard... -miles -- Saa, shall we dance? (from a dance-class advertisement)