aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorPhilipp Stephani2019-01-02 22:22:18 +0100
committerPhilipp Stephani2019-08-07 18:16:36 +0200
commitb83f83ccd47997b7fd581026d4e1b124fa4fefc2 (patch)
tree4cf0dc952e78141fbaa6fa3d9329a8f1ca0335e1 /src/eval.c
parente7818cb73ff042cb557332c7ea954fd512c87f69 (diff)
downloademacs-b83f83ccd47997b7fd581026d4e1b124fa4fefc2.tar.gz
emacs-b83f83ccd47997b7fd581026d4e1b124fa4fefc2.zip
Ignore pending_signals when checking for quits.
pending_signals is often set if no quit is pending. This results in bugs in module code if the module returns but no quit is actually pending. * src/emacs-module.c (module_should_quit): Use QUITP macro to check whether the caller should quit. * src/eval.c: Remove obsolete comment.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c5
1 files changed, 1 insertions, 4 deletions
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)