From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: LEE Sau Dan Newsgroups: gmane.emacs.help Subject: Re: emacs doesn't use the X clipboard Date: 12 Jan 2004 18:59:26 +0100 Organization: Rechenzentrum der Universitaet Freiburg, Germany Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <20040111002614.GM6119@luna.mooo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-7 X-Trace: sea.gmane.org 1073948716 18832 80.91.224.253 (12 Jan 2004 23:05:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2004 23:05:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 00:05:12 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AgB7Q-0002CL-00 for ; Tue, 13 Jan 2004 00:05:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AgB3D-0005pq-DT for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Jan 2004 18:00:51 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-freiburg.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: savona.informatik.uni-freiburg.de User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:120018 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15959 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15959 >>>>> "Eli" == Eli Zaretskii writes: Eli> Emacs pastes from X only if you didn't issue any command that Eli> kills text since the last X selection was made. In other Eli> words, if you select text in another application, then Eli> immediately paste inside Emacs, you should get the text you Eli> selected in that other application. Not always. I've been experiencing this annoying for some time. I think the OP has got the same problem that I encounter. Select text in xterm, and C-y in Emacs (or middle-click) while seeing the text still highlighted in xterm. Emacs pastes from the king-ring, not the selection. With the text still highlighted in xterm, middle-click on other apps and they all get the highlighted text from the xterm. Worse yet, this behaviour is quite random (to me). Sometimes, C-y does paste from a selection (form whatever other X-clients). Sometimes, it just pastes from the kill-ring, as if there were not selections at all. I still haven't figured out the rules of when Emacs behaves one way and when the other. So, to me it's "random". Eli> This is so because each text you kill in Emacs is Eli> automatically put into the X selection, so if you do that Eli> before pasting from X, the text you kill in Emacs overshadows Eli> the previous X selection in another application. I do understand how the X selection mechanism works. I've even programmed it in C/Xlib. That does not stop Emacs from misbehaving, though. -- Lee Sau Dan +Z05biGVm-(Big5) ~{@nJX6X~}(HZ) E-mail: danlee@informatik.uni-freiburg.de Home page: http://www.informatik.uni-freiburg.de/~danlee