aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 776ff984369..fcd6d017d33 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -246,8 +246,15 @@ SETUP_SYNTAX_TABLE (ptrdiff_t from, ptrdiff_t count)
246 gl_state.object = Qnil; 246 gl_state.object = Qnil;
247 gl_state.offset = 0; 247 gl_state.offset = 0;
248 if (parse_sexp_lookup_properties) 248 if (parse_sexp_lookup_properties)
249 if (count > 0 || from > BEGV) 249 {
250 update_syntax_table (count > 0 ? from : from - 1, count, true, Qnil); 250 if (count > 0 || from > BEGV)
251 update_syntax_table (count > 0 ? from : from - 1, count, true, Qnil);
252 if (gl_state.e_property > parse_sexp_propertize_done)
253 {
254 gl_state.e_property = parse_sexp_propertize_done;
255 gl_state.e_property_truncated = true;
256 }
257 }
251} 258}
252 259
253/* Same as above, but in OBJECT. If OBJECT is nil, use current buffer. 260/* Same as above, but in OBJECT. If OBJECT is nil, use current buffer.
@@ -480,11 +487,6 @@ parse_sexp_propertize (ptrdiff_t charpos)
480 error ("parse-sexp-propertize-function did not move" 487 error ("parse-sexp-propertize-function did not move"
481 " parse-sexp-propertize-done"); 488 " parse-sexp-propertize-done");
482 SETUP_SYNTAX_TABLE (charpos, 1); 489 SETUP_SYNTAX_TABLE (charpos, 1);
483 if (gl_state.e_property > parse_sexp_propertize_done)
484 {
485 gl_state.e_property = parse_sexp_propertize_done;
486 gl_state.e_property_truncated = true;
487 }
488} 490}
489 491
490void 492void