Hi, Terminal emacs can't access X libraries, hence clipboard. I had similar issue and the only solution is to combine it with external tools, like 'xsel'. Here is nice post how to do it: http://hugoheden.wordpress.com/2009/03/08/copypaste-with-emacs-in-terminal/ Good thing about above approach is that all Evil yanks and cuts will work with clipboard out of the box (no need to change anything, just load that code). Bad thing is if you use tramp for editing remote file, emacs will expect 'xsel' to be installed on that host too. This can be easily hacked with tramp hooks. Best, Sanel On 07/26/14,Gordon Gustafson wrote:
I can reproduce this. Some quick googling confirms that it comes from Emacs not being able to access the X clipboard when it's not run under X, so it's not an issue with Evil. Unfortunately I didn't see any fixes along the way...
On 7/26/14, Linus Arver <[email protected]> wrote:
On Sat, Jul 26, 2014 at 06:31:06PM -0400, Gordon Gustafson wrote:
Did you mean this (without the comma)?
(define-key evil-normal-state-map "y" "\"+y")
Well, I use the comma as my "leader" key. I don't want to use just "y" itself because that would overwrite the default "y" command.
Also, do you get the same error when you manually type the "+y (not using the macro)? What key sequence causes the failure?
If I don't use the macro and just type
"+y
into a `emacs -nw` session, I get the error message
X selection unavailable for this frame
.
-L
On 7/26/14, Linus Arver <[email protected]> wrote:
Hello all,
In regular Emacs (with Evil mode turned on, of course), I can (1) do visual selection of a region, and it will automatically copy that selection into the X primary selection buffer. This way, I can simply do SHIFT+INSERT in another X program (e.g., Firefox) and I will paste the selection that way. Conversely, I can (2) SHIFT+INSERT into Emacs/Evil (in Insert mode), and it will paste whatever is in the X primary buffer.
However, behavior (1) does not work in terminal-mode Emacs (`emacs -nw`), although behavior (2) works as expected. I have tried to work around this by using my `"+y` macro which is enabled with
(define-key evil-normal-state-map ",y" "\"+y")
in my .emacs, but it fails with the message
After 0 kbd macro iterations: X selection unavailable for this frame
. Is this a bug in Evil or is it something in Emacs itself?
-L
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list