-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yanking to ?+ register does not work in Emacs >=29 #1843
Comments
I'm confused, do you hit this bug on Emacs 29? Or Only 30? I can't reproduce it on 29, FWIW. |
I can reproduce this on:
|
What are your values of variables:
Mine is:
|
A comment from
I think it means that if you copied text to clipboard from Emacs then this function should return
|
Also, up until a couple months ago I ran Emacs 29 on Arch Linux with I can reproduce the "Register '+' is empty" error by setting I'm confused as to why you would bother with specifying the |
not sure what letter is associated with default register, but from quick testing it seems I can use |
Issue type
Bug report
Environment
Emacs version: 30.0.50
Operating System: Ubuntu 22.04
Evil version: 1.15.0
Evil installation type: MELPA
Graphical:
Tested in a
make emacs
session: NoReproduction steps
i C-r +
(so far so good)ygE
i C-r +
or"+p
- evil-get-register: Register ‘+’ is empty"+ygE
i C-r +
or"+p
- evil-get-register: Register ‘+’ is emptyExpected behavior
I would expect that text is pasted after yanking text inside Emacs, like it works in Emacs 28.
Actual behavior
evil-get-register: Register ‘+’ is empty
Further notes
It is related to #1677
After yanking text inside Emacs try to eval
(gui--selection-value-internal 'CLIPBOARD)
. It will return nil.I extracted the code that works for Emacs <29:
Eval
(old-x-selection 'CLIPBOARD)
it will return text that was yanked inside Emacs.Skimming over code of
gui--selection-value-internal
It seems that it can't pass the first unless.The text was updated successfully, but these errors were encountered: