mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Make quit more prompt by processing signals first
* src/eval.c (probably_quit): Process pending signals before checking quit flag, which may set the quit flag itself. This makes C-g more responsive when there are pending events.
This commit is contained in:
parent
f3c188ceb0
commit
da92ad2eaa
1 changed files with 7 additions and 3 deletions
10
src/eval.c
10
src/eval.c
|
|
@ -1859,10 +1859,14 @@ void
|
|||
probably_quit (void)
|
||||
{
|
||||
specpdl_ref gc_count = inhibit_garbage_collection ();
|
||||
if (!NILP (Vquit_flag) && NILP (Vinhibit_quit))
|
||||
process_quit_flag ();
|
||||
else if (pending_signals)
|
||||
|
||||
/* Quit promptly if processing pending signals makes us want to
|
||||
quit. */
|
||||
if (!QUITP && pending_signals)
|
||||
process_pending_signals ();
|
||||
if (QUITP)
|
||||
process_quit_flag ();
|
||||
|
||||
unbind_to (gc_count, Qnil);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue