From: Harry Putnam <reader@newsguy.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Copying text from emacs to another application using M-w
Date: Tue, 22 Sep 2009 10:59:25 -0500 [thread overview]
Message-ID: <87ljk7dl7m.fsf@newsguy.com> (raw)
In-Reply-To: 87ab0o91bp.fsf@lion.rapttech.com.au
Tim X <timx@nospam.dev.null> writes:
>> 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.
Here is an example of the kind of thing that keeps aggravating me.
I've run a search with homemade grepping tool in an Xterm window
The search results are printing to screen and running off the viewing
area.
I scroll backup up the xterm buffer and find a file name I want to
open.
Highlight the filename (in xterm buffer) by dragging with left mouse.
In emacs I have done C-x C-f and have the command waiting at the
command prompt for a filename.
Now shift mouse from xterm to emacs window and C-y with emacs.
Whoops it pastes something from a different virtual desktop that was
the last thing copied in a separate instance of emacs running there.
Ok... try it all again: shift mouse back to xterm again left mouse
drag to highlight the filename. shift to emacs left click to bring
focus to command prompt in emacs .. C-y to paste... whoops again
I get the same item from an earlier copy in a separate instance
of emacs.
Now a third attempt of the same procedure: shift mouse to xterm, left
drag to highlight filename ... shift mouse back to emacs and finally
on the third attempt C-y pastes what I copied from the xterm with
mouse.
Very aggravating... the earlier copy seems stuck to C-y or right click
for several attempts... and finally the copy/paste works.
next prev parent reply other threads:[~2009-09-22 15:59 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7074.1253405883.2239.help-gnu-emacs@gnu.org>
2009-09-20 4:06 ` Copying text from emacs to another application using M-w Tim X
2009-09-20 17:32 ` Harry Putnam
[not found] ` <mailman.7102.1253467990.2239.help-gnu-emacs@gnu.org>
2009-09-20 19:39 ` John A Pershing Jr
2009-09-21 7:58 ` Tim X
2009-09-21 9:59 ` Richard Riley
2009-09-22 15:59 ` Harry Putnam [this message]
[not found] ` <mailman.7208.1253635229.2239.help-gnu-emacs@gnu.org>
2009-09-22 16:11 ` notbob
2009-09-22 16:49 ` Harry Putnam
2009-09-22 18:08 ` Allan Gottlieb
2009-09-23 1:38 ` Harry Putnam
2009-09-23 1:43 ` Harry Putnam
2009-09-23 17:47 ` Allan Gottlieb
[not found] ` <mailman.7219.1253642900.2239.help-gnu-emacs@gnu.org>
2009-09-23 8:29 ` Tim X
2009-09-22 19:58 ` despen
2009-09-23 1:41 ` Harry Putnam
2009-09-23 5:21 ` tomas
2009-09-23 8:26 ` Tim X
2009-09-24 13:47 ` Harry Putnam
2009-09-20 0:17 Corey Foote
2009-09-20 4:31 ` Wang Lei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ljk7dl7m.fsf@newsguy.com \
--to=reader@newsguy.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.