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 <linusar...@gmail.com> 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 <linusar...@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@lists.ourproject.org
>> > https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
>> >
>>
>> _______________________________________________
>> implementations-list mailing list
>> implementations-list@lists.ourproject.org
>> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
>
> _______________________________________________
> implementations-list mailing list
> implementations-list@lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
>

_______________________________________________
implementations-list mailing list
implementations-list@lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list

Reply via email to