aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/emacs-module.c6
-rw-r--r--src/eval.c5
2 files changed, 4 insertions, 7 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c
index 0abfd3f6f16..282012770eb 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -665,13 +665,13 @@ module_vec_size (emacs_env *env, emacs_value vec)
665 return ASIZE (lvec); 665 return ASIZE (lvec);
666} 666}
667 667
668/* This function should return true if and only if maybe_quit would do 668/* This function should return true if and only if maybe_quit would
669 anything. */ 669 quit. */
670static bool 670static bool
671module_should_quit (emacs_env *env) 671module_should_quit (emacs_env *env)
672{ 672{
673 MODULE_FUNCTION_BEGIN_NO_CATCH (false); 673 MODULE_FUNCTION_BEGIN_NO_CATCH (false);
674 return (! NILP (Vquit_flag) && NILP (Vinhibit_quit)) || pending_signals; 674 return QUITP;
675} 675}
676 676
677 677
diff --git a/src/eval.c b/src/eval.c
index 0dc8639a8d4..2409d3d2c4b 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1484,10 +1484,7 @@ process_quit_flag (void)
1484 If quit-flag is set to `kill-emacs' the SIGINT handler has received 1484 If quit-flag is set to `kill-emacs' the SIGINT handler has received
1485 a request to exit Emacs when it is safe to do. 1485 a request to exit Emacs when it is safe to do.
1486 1486
1487 When not quitting, process any pending signals. 1487 When not quitting, process any pending signals. */
1488
1489 If you change this function, also adapt module_should_quit in
1490 emacs-module.c. */
1491 1488
1492void 1489void
1493maybe_quit (void) 1490maybe_quit (void)