Does anybody know how to do to paste text from external programs into an
emacs window? I am using emacs 23.2.1 and debian Squezze. Is this a
new "feature" of emacs 23? is it because of the usage of gtk libraries?
It happens in X and also in the console if I try to paste text with gpm.
Yes, someone does. ;-)
> I am using emacs 23.2.1 and debian Squezze. Is this a new
> "feature" of emacs 23?
Is what a new feature? pasting text in Emacs copied from outside it? No.
> is it because of the usage of gtk libraries?
Is what because of that?
> It happens in X and also in the console if I try to
> paste text with gpm.
"It happens." What happens?
Please provide a step-by-step recipe, starting from emacs -Q. Include which
keys you hit (in Emacs and outside), what effect you expect, and what effect you
see instead.
When you drag the original text with the left mouse button and paste it
into emacs with the middle button, what happens?
> Does anybody know how to do to paste text from external programs
> into an
> emacs window?
Down-mouse-2 or mouse-2 yanks. Usually the mouse's middle button, and
mostly the same for left and right handed people.
Does the external programme paste to clipboard X selections (primary,
secondary) at all?
--
Greetings
Pete
Sending unsolicited commercial eMail to this account incurs a fee of €
500 per message and acknowledges the legality of this contract.
As emacs23 is compiled with gtk libraries (at least the version of it
that comes with debian), those libraries might be responsible of the
behaviour of copy-paste.
>> It happens in X and also in the console if I try to
>> paste text with gpm.
>
> "It happens." What happens?
>
I cannot paste text between different X applications/ttys in console mode.
I get the message "Kill-Ring is empty".
> Please provide a step-by-step recipe, starting from emacs -Q. Include which
> keys you hit (in Emacs and outside), what effect you expect, and what effect you
> see instead.
>
>
I select text in xterm with left-mouse-button, I try to paste it into
emacs with central-mouse-button and I get the message "Kill ring is
empty".
The same happens in console mode when I try to paste text between
different virtual ttys.
-----Original Message-----
From: help-gnu-emacs-bounces+schwa=roger...@gnu.org [mailto:help-gnu-emacs-bounces+schwa=roger...@gnu.org] On Behalf Of Bill O'Connor
Sent: Friday, December 31, 2010 3:40 PM
To: Javier
Cc: help-gn...@gnu.org
Subject: Re: pasting text from other program in emacs
Javier <jav...@nospam.com> writes:
When you drag the original text with the left mouse button and paste it into emacs with the middle button, what happens?
>Does anybody know how to do to paste text from external programs into an
>emacs window? I am using emacs 23.2.1 and debian Squezze.
Copy the external program's text to your window manager's clipboard;
then, in an emacs buffer, press C-y to paste the clipboard contents
into the buffer.
You may also want to have a look at
M-x describe-variable x-select-enable-clipboard RET
> Is this a new "feature" of emacs 23?
Clipboard access is not a new feature of emacs 23.
Steve
> Does anybody know how to do to paste text from external programs into an
> emacs window? I am using emacs 23.2.1 and debian Squezze. Is this a
>
possibly i am misunderstanding, but with linux all i've done is select
text with the mouse-1 and mouse-2 for the paste. this doesn't work in a
console emacs (emacs -nw) unless you active the mouse in .emacs with
(xterm-mouse-mode)
and then hold shift down before doing mouse-2.
--
in friendship,
prad
> [1 <text/plain; us-ascii (7bit)>]
> >From: Javier <jav...@nospam.com>
>
> >Does anybody know how to do to paste text from external programs into an
> >emacs window? I am using emacs 23.2.1 and debian Squezze.
>
> Copy the external program's text to your window manager's clipboard;
> then, in an emacs buffer, press C-y to paste the clipboard contents
> into the buffer.
You might also want to try the IBM CUA keybinding of Shift-Insert to
perform a 'paste/yank'.
Cheers,
Jonathan
--
jjg: Jonathan J. Groll : groll co za
has_one { :blog => "http://bloggroll.com" }
xterm-mouse-mode only works in X and there should be an equivalent
somewhere for it in the console.
> Does anybody know how to do to paste text from external programs
> into an emacs window? I am using emacs 23.2.1 and debian Squeeze.
$ apt-get remove emacs23-gtk
$ apt-get install emacs23-lucid
--
BLOWN UP BY FOUR DESTROYERS. ENGAGING PLOT DEVICE. U-890.
> Javier <jav...@nospam.com> writes:
>
>> Does anybody know how to do to paste text from external programs
>> into an emacs window? I am using emacs 23.2.1 and debian Squeeze.
>
> $ apt-get remove emacs23-gtk
> $ apt-get install emacs23-lucid
This seems very strange advice. How does this solve the problem better
than the documented emacs clipboard variables?
This has been a very long thread and I may have forgotten now, but I
think the original poster had problems only with copy/paste in `emacs
-nw`.
Hence, emacs22-nox which may be optimised for terminal copy/paste.
Like most of us here I use graphical Emacs though.
In any case, I've been doing some reading tonight and found this
interesting link:
http://shreevatsa.wordpress.com/2006/10/22/emacs-copypaste-and-x/
Which leads to this:
http://hugoheden.wordpress.com/2009/03/08/copypaste-with-emacs-in-terminal/
The provided code makes use of xsel to set the X selection for
terminal based Emacs.
And, this seems to have been covered here before as the code in the
last article has a credit "to Nikolaj Schumacher and Miles Bader on
the help-gnu-emacs mailing list".
I have found another way of solving the behaviour of emacs in
console: run it through gnu/screen; that way the effect of the
mouse buttons is processed by gnu/screen, not by emacs.