Closed meditans closed 5 months ago
Can you repro with 24.5?
I should add that I'm not always able to reproduce this. As I encounter the bug again will add more precise instructions.
the cursor is a filled block half of the height it normally is
When typing dd
to delete a line, that's how the looks after the first d
and before the second d
is typed. This indicates the stuck state happens between the two presses.
not always able to reproduce this
This hints that either: 1) a timer is executed randomly and it just happens to be during dd
, or 2) dd
sometimes triggers loading of a lazy-loaded component ("sometimes" depends on whether the component was already loaded earlier or not).
Does the bug happens only once per Emacs session, or does it happens several times in the same session?
For how long is Emacs stuck? ~2 seconds or ~30 seconds or more than a minute?
Same here (except emacs 24.5; spacemacs v0.105.22; and the layers). Same (albeit general) instructions. Difficult to reproduce. Do you have xclip-mode on and xclip installed? I have a feeling that this has something to do with the emacs hanging when inserting yanked text into the system's clipboard. I've encountered this elsewhere and the solution was:
(setq x-select-enable-clipboard nil)
Which sucks!
Hi @oneyb! No, I have neither the xclip
program nor the xclip-mode
package installed. Fortunately
(setq x-select-enable-clipboard nil)
works for me as a (temporary) workaround!
@bmag emacs was stuck indefinitely, so I had to restart it every time. Again, the main factor which seems to correlate with this bug for me is suspending my laptop: after wake up, the bug has more possibilities to appear than after a clean boot.
Same here (0.300.0@26.2) and (setq x-select-enable-clipboard nil)
helps
This does not seem to be a Spacemacs-specific issue, since other programs like pass
cannot write to the clipboard either when this bug occurs. I suspect this is due to Gnome (maybe only the Wayland version).
For me, a temporary workaround (to "unfreeze" the clipboard) consists in copying some text to it using Ctrl-C outside of emacs. Then the clipboard can be written to again, and both emacs and pass continue working normally.
@cserb Which desktop are you using? Can you test if this workaround works for you?
@JLTastet I can confirm the workaround works for me (using Gnome with Wayland)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
This is happening for me, exactly as described above (dd
shows a half cursor, CPU usage spikes, C-g
is able to cancel it).
I'm convinced it's something to do with the clipboard, because typing " _ d
works fine (i.e. using the black hole register).
I do have xclip
installed. which xclip
shows xclip: aliased to xclip -r -selection c
(in case the aliasing has any relevance here). I use xclip
all the time in the terminal with no issues.
And now, oddly enough, after confirming that deleting to the black hole register works fine, regular dd
is working again. But looking in the kill ring, I only see entries from after the black holing, as if the whole thing got cleared.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
Description :octocat:
I cannot use several complex keybindings, both expicitly related to vim-mode editing and not: eg, I cannot use
dd
to delete a line, orC
to change the line after the point, or evenC-<backspace>
to backward delete a word.Reproduction guide :beetle:
dd
Observed behaviour: :eyes: :broken_heart: Emacs enters in a stuck state, in which movement functions don't work. I can however leave that stuck state with
C-g
. Interestingly, in that stuck state the cursor is a filled block half of the height it normally is.Expected behaviour: :heart: :smile: The commands should work :P
System Info :computer: