diff options
| author | Stefan Monnier | 2015-09-09 16:22:29 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2015-09-09 16:22:29 -0400 |
| commit | 0b78dd60277129af9f520e4d5dc8c7e528c63eee (patch) | |
| tree | 360c0dce9980e35d77fa9d2b081a2fd9c66cd7b0 /src/syntax.c | |
| parent | 75a351bc6fee0dcba72bce96706ba0c18b2df111 (diff) | |
| download | emacs-0b78dd60277129af9f520e4d5dc8c7e528c63eee.tar.gz emacs-0b78dd60277129af9f520e4d5dc8c7e528c63eee.zip | |
* src/syntax.c (SETUP_SYNTAX_TABLE): Move truncation...
(parse_sexp_propertize): ...from here.
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 16 |
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 | ||
| 490 | void | 492 | void |