visual selection and X primary behavior
Gordon Gustafson
gordon3.14 at gmail.com
Sun Jul 27 00:31:06 CEST 2014
Did you mean this (without the comma)?
(define-key evil-normal-state-map "y" "\"+y")
Also, do you get the same error when you manually type the "+y (not
using the macro)? What key sequence causes the failure?
On 7/26/14, Linus Arver <linusarver at gmail.com> 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
> implementations-list at lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
>
More information about the implementations-list
mailing list