From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Lee Newsgroups: gmane.emacs.help Subject: Re: copy/paste & Emacs on XWindows Date: Wed, 19 Mar 2003 18:41:52 GMT Organization: Prodigy Internet http://www.prodigy.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87isugl63m.fsf@sdf.lonestar.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048099686 24115 80.91.224.249 (19 Mar 2003 18:48:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2003 18:48:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 19 19:48:04 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 18viay-0006Cz-00 for ; Wed, 19 Mar 2003 19:47:24 +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 18viYv-0007r0-00 for gnu-help-gnu-emacs@m.gmane.org; Wed, 19 Mar 2003 13:45:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.bc.net!tdsnet-transit!newspeer.tds.net!news-feed01.roc.ny.frontiernet.net!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr30.news.prodigy.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 Original-NNTP-Posting-Host: 216.62.199.3 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr30.news.prodigy.com 1048099312 ST000 216.62.199.3 (Wed, 19 Mar 2003 13:41:52 EST) Original-NNTP-Posting-Date: Wed, 19 Mar 2003 13:41:52 EST X-UserInfo1: TSU[@I_AO@RYB\\YQCHN_TTDFRYB@GXLN@GZ_GYO^BSZUSAANVUEAE[YETZPIWWI[FCIZA^NBFXZ_D[BFNTCNVPDTNTKHWXKB@X^B_OCJLPZ@ET_O[G\XSG@E\G[ZKVLBL^CJINM@I_KVIOR\T_M_AW_M[_BWU_HFA_]@A_A^SGFAUDE_DFTMQPFWVW[QPJN Original-Xref: shelby.stanford.edu gnu.emacs.help:111224 Original-To: help-gnu-emacs@gnu.org 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:7724 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7724 Ittay Dror writes: > 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. Thanks a bunch! I will try this when I get home. One other thing... what about copying from clipboard to Emacs? Any tricks for that ? Or should that just work as is?