Question

Sometimes emacs enter in a loop, and I can't do anything but kill it.

I don't really know the exact key combination that I use to put it in that state.

Something with CTRL and %

Was it helpful?

OTHER TIPS

I believe that C-g (keyboard-quit) is what you want. C-g is short for Ctrl-g. The keyboard-quit command tells Emacs to interrupt the current command (lisp code) that it is processing.

To get information about this command, enter the following in the minibar:

M-x describe-key C-g

-or-

C-h k C-g    

(M-x is generally mapped to Alt-x on Windows.)

C-g runs the command keyboard-quit
   which is an interactive compiled Lisp function in `simple'.
(keyboard-quit)

Signal a `quit' condition.
During execution of Lisp code, this character causes a quit directly.
At top-level, as an editor command, this simply beeps.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top