From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mandar.mitra@gmail.com Newsgroups: gmane.emacs.help Subject: pasting primary X selection into Emacs Date: 3 May 2006 09:00:47 -0700 Organization: http://groups.google.com Message-ID: <1146672047.141419.152910@j73g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1146674457 7698 80.91.229.2 (3 May 2006 16:40:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 16:40:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 03 18:40:56 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FbKOu-0003qv-Kj for geh-help-gnu-emacs@m.gmane.org; Wed, 03 May 2006 18:40:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbKOt-0003GF-Nm for geh-help-gnu-emacs@m.gmane.org; Wed, 03 May 2006 12:40:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!j73g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 210.212.1.35 Original-X-Trace: posting.google.com 1146672052 14645 127.0.0.1 (3 May 2006 16:00:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 3 May 2006 16:00:52 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686; U; en) Opera 9.00,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j73g2000cwa.googlegroups.com; posting-host=210.212.1.35; posting-account=7aSoiw0AAAD0TwCxyms_jJWSp7manJjE Original-Xref: shelby.stanford.edu gnu.emacs.help:139151 Original-To: help-gnu-emacs@gnu.org 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:34775 Archived-At: I would like to use C-y or to yank the primary X selection in Emacs. C-y and middle button both work as expected after a kill (since the kill updates the primary selection), but if I use the mouse to create a new primary selection after that, and then do a C-y, I still get the last killed text, instead of the new primary selection. Is there some way to yank whichever is more recent: the last killed text or the primary selection? Thanks for any pointers, Mandar. ps 1: I've looked at some of the discussion on cutting and pasting between Emacs and X11 apps, but haven't found the answer to this particular question. ps 2: I had posted this on comp.emacs, but got no suggestions, so I'm trying here. I should have crossposted at the outset. Sorry.