When emacs locks up

emacs, slime

Solution

Try `C-g` (`keyboard-quit`). Try repeating it multiple times.

Try `C-]` (`abort-recursive-edit`). Try repeating it multiple times.

Try `ESC ESC ESC` (`keyboard-escape-quit`). Try repeating it multiple times.

Give up and kill the process.

Problem

Is there any keystroke combination that shuts down a process in emacs? Occasionally I make a newbie mistake at the Common Lisp REPL and my Emacs locks up. On Mac I just force-quit because I can't find a way to get control of Emacs back. But I'd prefer not close Emacs if I can avoid it.

Original source