I'm using Emacs 27.2 on macOS 10.13.16 from the railwaycat build. I set my cursor color to a red color using
(set-cursor-color "red")
As soon as I type controlg, the cursor color reverts to black. Investigating the code executed by that key binding, which is keyboard-quit
in simple.el
, I find that the command that causes the color reset is signal
, an Emacs built-in.
Why does this happen, and how can I get Emacs to stop changing my cursor color?
emacs -Q
? https://emacs.stackexchange.com/questions/28429/how-do-i-troubleshoot-emacs-problems – Tyler Jun 10 '21 at 17:49-Q
, so it must be something in my configuration, but I'm at a loss about what it could be. The problem occurs if I invoke(signal 'quit nil)
directly, andsignal
is a built-in C function. I guess the next step is to understand whatsignal
is doing, and work backwards to understand how that's entangled with whatever I'm doing. – mhucka Jun 17 '21 at 02:24