top-level

top-level is an interactive built-in function in `C source code'.

It is bound to C-x X q.

(top-level)

Exit all recursive editing levels.
This also exits all active minibuffers.