What should I do when Emacs stops responding?
My current "emacs-is-frozen" protocol looks like this:
- Spam
C-g
(it sometimes works) - Wait for a while.
pkill -9 emacs
What alternate steps could I try to avoid losing work that hasn't been autosaved yet?
If anything, could I attach GDB to know what the likely issue is?
src/
subdirectory) and allow gdb to source the.gdbinit
there, you'll get bonus commands (xbacktrace, etc.) for inspecting emacs internal structures (but the usefulness decreases dramatically if you have an optimized build, e.g. a release). See theetc/DEBUG
file in the emacs tree for more information on debugging emacs.