summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-06-11 20:16:45 +0000
committerRichard M. Stallman <rms@gnu.org>1998-06-11 20:16:45 +0000
commit99ac00691a44c72b8d564e3637d1ff8c781b8f89 (patch)
tree1d63b99995674700241fd57267d6301d5fc907f8
parent047a787dcd3ac83482561fdcbd3409e7e6ec2878 (diff)
downloademacs-99ac00691a44c72b8d564e3637d1ff8c781b8f89.tar.gz
(SETUP_SYNTAX_TABLE): Don't call update_syntax_table
for FROM-1 if that's before BEGV.
-rw-r--r--src/syntax.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/syntax.h b/src/syntax.h
index 35d50899e3f..4b58b5da636 100644
--- a/src/syntax.h
+++ b/src/syntax.h
@@ -284,8 +284,9 @@ if (1) \
gl_state.offset = 0; \
gl_state.current_syntax_table = current_buffer->syntax_table; \
if (parse_sexp_lookup_properties) \
- update_syntax_table ((COUNT) > 0 ? (FROM) : (FROM) - 1, (COUNT), \
- 1, Qnil); \
+ if ((COUNT) > 0 || (FROM) > BEGV) \
+ update_syntax_table ((COUNT) > 0 ? (FROM) : (FROM) - 1, (COUNT),\
+ 1, Qnil); \
} \
else