diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/alloc.c b/src/alloc.c index 05a19f0b7e9..7ff2cd3b100 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -367,7 +367,7 @@ static ptrdiff_t pure_bytes_used_non_lisp; | |||
| 367 | 367 | ||
| 368 | /* If positive, garbage collection is inhibited. Otherwise, zero. */ | 368 | /* If positive, garbage collection is inhibited. Otherwise, zero. */ |
| 369 | 369 | ||
| 370 | static intptr_t garbage_collection_inhibited; | 370 | intptr_t garbage_collection_inhibited; |
| 371 | 371 | ||
| 372 | /* The GC threshold in bytes, the last time it was calculated | 372 | /* The GC threshold in bytes, the last time it was calculated |
| 373 | from gc-cons-threshold and gc-cons-percentage. */ | 373 | from gc-cons-threshold and gc-cons-percentage. */ |
diff --git a/src/xdisp.c b/src/xdisp.c index 43847544396..e960901d5dc 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -12810,6 +12810,8 @@ truncate_message_1 (void *a1, Lisp_Object a2) | |||
| 12810 | return false; | 12810 | return false; |
| 12811 | } | 12811 | } |
| 12812 | 12812 | ||
| 12813 | extern intptr_t garbage_collection_inhibited; | ||
| 12814 | |||
| 12813 | /* Set the current message to STRING. */ | 12815 | /* Set the current message to STRING. */ |
| 12814 | 12816 | ||
| 12815 | static void | 12817 | static void |
| @@ -12819,7 +12821,11 @@ set_message (Lisp_Object string) | |||
| 12819 | 12821 | ||
| 12820 | eassert (STRINGP (string)); | 12822 | eassert (STRINGP (string)); |
| 12821 | 12823 | ||
| 12822 | if (FUNCTIONP (Vset_message_function)) | 12824 | if (FUNCTIONP (Vset_message_function) |
| 12825 | /* FIXME: (bug#63253) We should really make the regexp engine re-entrant, | ||
| 12826 | but in the mean time, let's ignore `set-message-function` when | ||
| 12827 | called from `probably_quit`. */ | ||
| 12828 | && !garbage_collection_inhibited) | ||
| 12823 | { | 12829 | { |
| 12824 | specpdl_ref count = SPECPDL_INDEX (); | 12830 | specpdl_ref count = SPECPDL_INDEX (); |
| 12825 | specbind (Qinhibit_quit, Qt); | 12831 | specbind (Qinhibit_quit, Qt); |
| @@ -12896,7 +12902,9 @@ clear_message (bool current_p, bool last_displayed_p) | |||
| 12896 | 12902 | ||
| 12897 | if (current_p) | 12903 | if (current_p) |
| 12898 | { | 12904 | { |
| 12899 | if (FUNCTIONP (Vclear_message_function)) | 12905 | if (FUNCTIONP (Vclear_message_function) |
| 12906 | /* FIXME: (bug#63253) Same as for `set-message-function` above. */ | ||
| 12907 | && !garbage_collection_inhibited) | ||
| 12900 | { | 12908 | { |
| 12901 | specpdl_ref count = SPECPDL_INDEX (); | 12909 | specpdl_ref count = SPECPDL_INDEX (); |
| 12902 | specbind (Qinhibit_quit, Qt); | 12910 | specbind (Qinhibit_quit, Qt); |