]> git.eshelyaron.com Git - emacs.git/commit
with-display-message: Workaround for bug#63253
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 10 May 2023 02:30:52 +0000 (22:30 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 10 May 2023 02:30:52 +0000 (22:30 -0400)
commit93005cd9dc2bab882e66ac7b81f593cd6c021e43
tree9e8e6e74b2e89db33921957ab8cc27e96cba05c3
parent6924c81a6d223e62465a8c584c6b0d777afa354b
with-display-message: Workaround for bug#63253

Running arbitrary ELisp code from an atimer is still dangerous,
at least because the regexp engine is not-reentrant, so let's patch up
the case we bumped into.  There are probably many other such holes :-(

* src/alloc.c (garbage_collection_inhibited): Make it non-static.

* src/xdisp.c (garbage_collection_inhibited): Declare it.
(set_message, clear_message): Use it as a proxy for "we're in
a dangerous context like within `probably_quit`".
src/alloc.c
src/xdisp.c