aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorMattias EngdegÄrd2025-09-18 22:10:55 +0200
committerMattias EngdegÄrd2025-09-18 22:13:38 +0200
commit7d5633d0f4785881fc3a1ad302b0a8d3f11dcc25 (patch)
treeaa1795fd53ca8936b4f8775f6e94cdfe2cc61195 /src/bytecode.c
parent27853a2bca63b339bb2264d6c92c7c5ddcd51a75 (diff)
downloademacs-7d5633d0f4785881fc3a1ad302b0a8d3f11dcc25.tar.gz
emacs-7d5633d0f4785881fc3a1ad302b0a8d3f11dcc25.zip
* src/bytecode.c (exec_byte_code): Better quitcounter reset value.
This value forces a quit check at the next backward branch, to avoid rare situations being hard to interrupt. Suggested by Pip Cet.
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 318b96a12be..424d00f20ec 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -959,7 +959,9 @@ exec_byte_code (Lisp_Object fun, ptrdiff_t args_template,
959 959
960 if (sys_setjmp (c->jmp)) 960 if (sys_setjmp (c->jmp))
961 { 961 {
962 quitcounter = 1; /* no need to restore old value */ 962 /* No need to restore old quitcounter; just check at the next
963 backward branch. */
964 quitcounter = (unsigned char)-1;
963 struct handler *c = handlerlist; 965 struct handler *c = handlerlist;
964 handlerlist = c->next; 966 handlerlist = c->next;
965 top = c->bytecode_top; 967 top = c->bytecode_top;