aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorFrancesco Potortì <[email protected]>1994-11-21 12:50:27 +0000
committerFrancesco Potortì <[email protected]>1994-11-21 12:50:27 +0000
commit7074fde6640c88db886be0fcc4182e3790936d7d (patch)
treeebcb295249beee68ca1d0f0274e190875c79931b /src/emacs.c
parent827342364655e5ac2ae80d9b34b8abb20c186a0f (diff)
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.c5
1 files changed, 5 insertions, 0 deletions
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. */