From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ittay Dror Newsgroups: gmane.emacs.help Subject: Re: copy/paste & Emacs on XWindows Date: 19 Mar 2003 11:52:54 +0200 Organization: Qlusters Inc. Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1048067574.2325.9.camel@rum> References: <87isugl63m.fsf@sdf.lonestar.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048067648 12951 80.91.224.249 (19 Mar 2003 09:54:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2003 09:54:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 19 10:54:06 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18vaGr-0003MX-00 for ; Wed, 19 Mar 2003 10:54:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vaGg-0006VE-00 for gnu-help-gnu-emacs@m.gmane.org; Wed, 19 Mar 2003 04:53:54 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18vaGG-0005yo-00 for help-gnu-emacs@gnu.org; Wed, 19 Mar 2003 04:53:28 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18vaGF-0005wk-00 for help-gnu-emacs@gnu.org; Wed, 19 Mar 2003 04:53:27 -0500 Original-Received: from adsl-139-109.barak.net.il ([62.90.139.109] helo=hirame.qlusters.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vaGB-0005X1-00 for help-gnu-emacs@gnu.org; Wed, 19 Mar 2003 04:53:23 -0500 Original-Received: from [10.100.0.13] ([10.100.0.13]) by hirame.qlusters (8.10.2/8.10.2) with ESMTP id h2J9mP023695 for ; Wed, 19 Mar 2003 11:48:25 +0200 Original-To: help-gnu-emacs@gnu.org In-Reply-To: <87isugl63m.fsf@sdf.lonestar.org> X-Mailer: Ximian Evolution 1.2.2 (1.2.2-3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7707 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7707 On Tue, 2003-03-18 at 23:25, Roman A. Lagunov wrote: > >>>>> "PL" ==> Peter Lee writes: > > PL> Is there something special you have to do to get copy/paste > PL> working between emacs and other apps on xwindows ? > > PL> If I M-w some text in emacs it doesn't appear to store it in the > PL> "clipboard" (whatever the xwindows equivalent of that is). > > You can try to do it with mouse - just drag around block of text you > want to yank. > > Then, in xterm for exapmle, just click middle button. > > That's a trick. It's works perfectly for me. i have this hack: (defun if-copy-mark-to-primary-selection () (if mark-active (x-set-selection 'PRIMARY (buffer-substring (region-beginning) (region-end))))) (add-hook 'post-command-hook 'if-copy-mark-to-primary-selection) what it does is copy the region to the primary selection, (which is not the clipboard), use the middle mouse button to paste it in another window. if you wish to copy to the clipboard, change PRIMARY to CLIPBOARD. hope it helps, ittay -- =================================== Ittay Dror (ittay@qlusters.com) User Space Team, R&D Qlusters Inc. +972-3-6081976 Fax: +972-3-6081841