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: Copying text from emacs to another application using M-w Date: Mon, 21 Sep 2009 11:59:06 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87iqfe8dkw.fsf@lion.rapttech.com.au> <87ab0o91bp.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253529709 7044 80.91.229.12 (21 Sep 2009 10:41:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2009 10:41:49 +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 Sep 21 12:41:42 2009 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 1MpgKz-0001b8-2H for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Sep 2009 12:41:42 +0200 Original-Received: from localhost ([127.0.0.1]:40239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpgKy-0005wu-Fs for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Sep 2009 06:41:40 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin1!goblin.stu.neva.ru!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 59 Original-X-Trace: news.eternal-september.org U2FsdGVkX19xKh/ounSU1a8eyuBwCifezyweWDq1H3SjOHxqeTAOVw6uLG0GTGnLMgSvP4pMQk9tqDz7b9/IFGWkIOW+cCcUXms3UTTsjJEPVMzYCPl9J541s2yeHol5bkSUYgFX+fE= Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Mon, 21 Sep 2009 09:59:07 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+9ch2IJOXWqQcP2UwSU0wN Cancel-Lock: sha1:IiVEDlYf/9CSYP6ugU6q0k2ot9E= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:173222 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:68341 Archived-At: Tim X writes: > Harry Putnam writes: > >> Tim X writes: >> >>> How are you pasting into the other application? Are you using the middle >>> mouse button? >>> >>> I follow the following process and it all works fine. >>> >>> 1. mark the region >>> 2. cut/copy the region with C-w or M-w >>> 3. Go tot he app I want to paste to >>> 4. Put the cursor where I want to paste and hit the middle mouse button >>> >>> note that I'm not using CUA mode - not sure if that has any impact. >> >> Tim do you mind posting how you do the other way round. >> >> I mean copy outside emacs. Paste inside emacs. >> I keep getting really goofed up when I try that. Seems to take >> several attempts before the paste will happen. >> >> I probably have something set wrong somewhere. But it seems like the >> last copy/kill in emacs is what keeps sticking to clipboard or kill ring or >> somewhere I don't want it. So that when I press middle mouse or C-y >> to paste into emacs... I get something from an earlier operation. >> >> I'd like to do this: >> >> 1. Mouse or keyboard (or C-a) select a region or `all' (say in firefox) >> 2. Middle mouse or C-y to paste that region into emacs. >> done >> > > That is essentially what I do. I just tested it with firefox. > > 1. Started firefox > 2. Using the mouse, highlighted the region of interest. > 3. Switched to emacs > 4. click mouse 1 to position the cursor where I want the data to be > pasted, theen hit the middle mouse button to paste it. > > Most of the time, when back in emacs, I wouldn't use the mouse, C-y > pastes the selection as well. > > I don't have any special settings in my .emacs relating to this and I > don't use CUA mode. Currently running emacs 23 on Debian unstable. > > Tim Just as a point of interest, I noticed something called xclip.el on the emacs irc channel. It makes cut/paste between a terminal emacs and an X emacs much more "obvious" for those of who never quite got why x clipboard enabled was not the obvious default in order to help newcomers to emacs. Very useful for emacs 23 daemon.