(add_to_log): Do nothing if called asynchronously.

This commit is contained in:
Gerd Moellmann 2001-07-10 10:44:40 +00:00
parent 8184a578cd
commit ae794295d6
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2001-07-10 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (add_to_log): Do nothing if called asynchronously.
2001-07-09 Gerd Moellmann <gerd@gnu.org>
* sound.c (toplevel): Include <signal.h> and "syssignal.h".

View file

@ -5499,6 +5499,12 @@ add_to_log (format, arg1, arg2)
int len;
struct gcpro gcpro1, gcpro2, gcpro3, gcpro4;
/* Do nothing if called asynchronously. Inserting text into
a buffer may call after-change-functions and alike and
that would means running Lisp asynchronously. */
if (handling_signal)
return;
fmt = msg = Qnil;
GCPRO4 (fmt, msg, arg1, arg2);