From 7074fde6640c88db886be0fcc4182e3790936d7d Mon Sep 17 00:00:00 2001 From: Francesco Potortì Date: Mon, 21 Nov 1994 12:50:27 +0000 Subject: Added code for automatically saving and restoring the match data when a filter or sentinel tries to modify it. --- src/emacs.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/emacs.c') diff --git a/src/emacs.c b/src/emacs.c index bfc83b8708..ae13412fc8 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -98,6 +98,10 @@ int inhibit_window_system; priority; Those functions have their own extern declaration. */ int emacs_priority; +/* If non-zero a filter or a sentinel is running. Tested to save the match + data on the first attempt to change it inside asynchronous code. */ +int running_asynch_code; + #ifdef BSD_PGRPS /* See sysdep.c. */ extern int inherited_pgroup; @@ -697,6 +701,7 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\ init_alloc (); init_eval (); init_data (); + running_asynch_code = 0; #ifdef MSDOS /* Call early 'cause init_environment needs it. */ -- cgit v1.2.3