After a recent update to my Spacemacs install, I noticed that C-g
i.e. keyboard-quit
closes *compilation*
buffers that result from an M-x recompile
. How can I prevent this behavior? I don't want C-g
to close *compilation*
buffers.
2 Answers
The culprit turned out to be popwin
. I fixed it with M-x customize-group RET popwin RET
and removing compilation-mode
from the "Popwin Special Display Config" list.
Try this:
(defun revert-spacemacs-C-g-doing (func &rest r)
"Revert rebind of `keyboard-quit' from calling
`pupo/after-display'"
(apply func r)
(global-set-key [remap keyboard-quit] nil))
(advice-add 'pupo/after-display :around 'revert-spacemacs-C-g-doing)
emacs -Q
). If you think so, consider reporting it to the Spacemacs maintainers.C-g
would rebind topupo/close-window
in spacemacs settings. How to disable this feature/bug still needs some diggings though. RefC-g
in Emacs is generally about canceling an action, but not quitting a window - sounds unusual, in any case.popwin
,window-purpose
etc. You are making a valid point:C-g
shouldn't do anything but quit. However, I myself enjoy this feature/bug quite a lot. (Another reason I'm not familiar with how it works, since for me, it just works). Maybe edit the tags (popwin?) to attract the right person?