-
Notifications
You must be signed in to change notification settings - Fork 271
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
Cursor color does not persist #1835
Comments
I'm temporarily fixing the issue, at least in emacs-lisp-mode buffers and typescript-ts-mode buffers (where I use eglot, which uses eldoc) with this:
|
The issue seems to be that the cursor colour doesn't update after emacs visited a buffer without displaying it. You can replicate this by evaluating for example
After evaluation your cursor colour will match whatever motion state the mode you invoked for the temp buffer defaults to. |
I can confirm this issue persists with |
Happy it works, @kommen. This, though, might be a better fix: update:
|
@pietroiusti also |
Thanks for letting me know @kommen |
Issue type
Environment
Emacs version: GNU Emacs 29.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-09-02
Operating System: Arch Linux
Evil version: Evil version evil-git-5fc1677
Evil installation type: I'm using make emacs in Evil's source directory
Graphical/Terminal: Graphical
Tested in a
make emacs
session (see CONTRIBUTING.md): YesReproduction steps
evil-emacs-state-cursor
on the last line.Expected behavior
Cursor's color should remain red.
Actual behavior
Cursor's color becomes grey.
Further notes
I suspect the color change is triggered in other contexts as well. This was the easiest way to replicate.
Here is the backtrace using debug-on-entry on set-cursor-color:
The text was updated successfully, but these errors were encountered: