From 2b80340bf3585f976d88da94ee9d40eb03230c6b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 19 Sep 2019 17:10:00 +0300 Subject: Fix calls to insert-*-hooks when JIT font lock is active * src/insdel.c (signal_after_change): Save and restore interval_insert_behind_hooks and interval_insert_in_front_hooks across calls to various other hooks, to prevent their clobbering by those other hooks. (Bug#37455) --- src/buffer.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/buffer.h') diff --git a/src/buffer.h b/src/buffer.h index 82d9350bfc2..280d4e9098e 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -1139,6 +1139,12 @@ extern struct buffer buffer_local_flags; that don't have such names. */ extern struct buffer buffer_local_symbols; + +/* verify_interval_modification saves insertion hooks here + to be run later by report_interval_modification. */ +extern Lisp_Object interval_insert_behind_hooks; +extern Lisp_Object interval_insert_in_front_hooks; + extern void delete_all_overlays (struct buffer *); extern void reset_buffer (struct buffer *); -- cgit v1.2.1