]> git.eshelyaron.com Git - emacs.git/commitdiff
(SETUP_SYNTAX_TABLE): Don't call update_syntax_table
authorRichard M. Stallman <rms@gnu.org>
Thu, 11 Jun 1998 20:16:45 +0000 (20:16 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 11 Jun 1998 20:16:45 +0000 (20:16 +0000)
for FROM-1 if that's before BEGV.

src/syntax.h

index 35d50899e3f54c1f55c3aa654768a2f67514a350..4b58b5da636a8573edc87289a35c06554d25408a 100644 (file)
@@ -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