From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Copy/Paste from console emacs client Date: Mon, 04 Jan 2010 14:16:27 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262611643 16568 80.91.229.12 (4 Jan 2010 13:27:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jan 2010 13:27:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 04 14:27:15 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.50) id 1NRmrV-0007Ks-NZ for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jan 2010 14:20:48 +0100 Original-Received: from localhost ([127.0.0.1]:32780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRmrS-0003Cq-C5 for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jan 2010 08:20:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NRmr4-0003AL-Ns for help-gnu-emacs@gnu.org; Mon, 04 Jan 2010 08:20:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NRmr0-00038N-1B for help-gnu-emacs@gnu.org; Mon, 04 Jan 2010 08:20:17 -0500 Original-Received: from [199.232.76.173] (port=44434 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRmqz-00038E-RV for help-gnu-emacs@gnu.org; Mon, 04 Jan 2010 08:20:13 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:55048) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NRmqz-0002nx-9z for help-gnu-emacs@gnu.org; Mon, 04 Jan 2010 08:20:13 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NRmnu-0005Fg-Jq for help-gnu-emacs@gnu.org; Mon, 04 Jan 2010 14:17:02 +0100 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jan 2010 14:17:02 +0100 Original-Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jan 2010 14:17:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 63 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:71044 Archived-At: OK, to follow up from my own post: The problem was simply this - I had included xclip.el. However it does this: (add-hook 'terminal-init-xterm-hook 'turn-on-xclip) This was not triggered in my version of urxvt. I dont know the details as to why. So, and thanks to dim in #emacs, I went back and call the the interprogram function set up (turn-on-xclip) et voila. Working just fine. I guess I should go and add this to the hundreds of threads on the subject out there ;) So trivial after all that. Hope this helps someone else, regards, r. Richard Riley writes: > Richard Riley writes: > >> OK, , I've been trying to get some half sensible cut/paste >> going with emacs (x and console) and other apps. >> >> The one that has me stumped is uing M-w to copy in console emacs - why >> can than not be made the primary and clipboard X contents if X is >> running? The issue is that the interprogram cut function calls >> x-select-text which determines that the emacs frame is not X and >> therefore does not set the X buckets. >> >> Is there an easy way around this? It seems (to me who is tired and >> confused) that it would be better to just set the X buckets if X is >> running, not if the emacs itself is an x frame. >> >> (I am running emacsclient -nw in urxvt) >> >> regards >> >> r. >> > > This thread (not Ubuntu specific) discusses the issues quite well : > > http://ubuntuforums.org/showthread.php?t=539888 > > The first, probably naive, solution that comes to mind is for emacs to > use xclip or equiv even IF the frame is not an X frame IF it detects X is > running. I guess that might mean linking to x libraries or something > and thus make it impossible? Reading the millions of queries about the > same thing makes me think I'm being too hopeful and just need to bite > the bullet and use the horrible mouse selection technique. > --