diff options
| author | Eli Zaretskii | 2019-09-19 17:10:00 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-09-19 17:10:00 +0300 |
| commit | 2b80340bf3585f976d88da94ee9d40eb03230c6b (patch) | |
| tree | 84ec6b3c9f4751ce5ee76366582577dbc9b38646 /src/textprop.c | |
| parent | 7156b0efc714eaaab5bcf42138752f698e57b5ad (diff) | |
| download | emacs-2b80340bf3585f976d88da94ee9d40eb03230c6b.tar.gz emacs-2b80340bf3585f976d88da94ee9d40eb03230c6b.zip | |
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)
Diffstat (limited to 'src/textprop.c')
| -rw-r--r-- | src/textprop.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/textprop.c b/src/textprop.c index 44c333256a6..d36b9e14a69 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -58,9 +58,8 @@ enum property_set_type | |||
| 58 | 58 | ||
| 59 | /* verify_interval_modification saves insertion hooks here | 59 | /* verify_interval_modification saves insertion hooks here |
| 60 | to be run later by report_interval_modification. */ | 60 | to be run later by report_interval_modification. */ |
| 61 | static Lisp_Object interval_insert_behind_hooks; | 61 | Lisp_Object interval_insert_behind_hooks; |
| 62 | static Lisp_Object interval_insert_in_front_hooks; | 62 | Lisp_Object interval_insert_in_front_hooks; |
| 63 | |||
| 64 | 63 | ||
| 65 | /* Signal a `text-read-only' error. This function makes it easier | 64 | /* Signal a `text-read-only' error. This function makes it easier |
| 66 | to capture that error in GDB by putting a breakpoint on it. */ | 65 | to capture that error in GDB by putting a breakpoint on it. */ |