Mercurial > emacs
changeset 22438:917424c9c149
(SETUP_SYNTAX_TABLE): Don't call update_syntax_table
for FROM-1 if that's before BEGV.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 11 Jun 1998 20:16:45 +0000 |
parents | 982bf2f2c1de |
children | 3dc0b9f57ff6 |
files | src/syntax.h |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/syntax.h Thu Jun 11 15:33:13 1998 +0000 +++ b/src/syntax.h Thu Jun 11 20:16:45 1998 +0000 @@ -284,8 +284,9 @@ 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