* src/keyboard.c (handle_interrupt): Don't quit if
waiting_for_input is set, as doing that is "unsafe": it will
abort. (Bug#25566)
/* If executing a function that wants to be interrupted out of
and the user has not deferred quitting by binding `inhibit-quit'
then quit right away. */
- if (immediate_quit && NILP (Vinhibit_quit))
+ if (immediate_quit && NILP (Vinhibit_quit) && !waiting_for_input)
{
struct gl_state_s saved;