diff options
author | Francesco Potortì <pot@gnu.org> | 1994-11-21 12:50:27 +0000 |
---|---|---|
committer | Francesco Potortì <pot@gnu.org> | 1994-11-21 12:50:27 +0000 |
commit | 7074fde6640c88db886be0fcc4182e3790936d7d (patch) | |
tree | ebcb295249beee68ca1d0f0274e190875c79931b /src/emacs.c | |
parent | 827342364655e5ac2ae80d9b34b8abb20c186a0f (diff) | |
download | emacs-7074fde6640c88db886be0fcc4182e3790936d7d.tar.gz |
Added code for automatically saving and restoring the match data
when a filter or sentinel tries to modify it.
Diffstat (limited to 'src/emacs.c')
-rw-r--r-- | src/emacs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index bfc83b87087..ae13412fc80 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. */ |