summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/syntax.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2016-06-22 09:44:24 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2016-06-22 09:44:24 -0400
commit8270a64d530212002dfdb39f4504c07100425bfb (patch)
treec8bd6cb2212fb46e914d05b1e14ee106f5afb512 /lisp/emacs-lisp/syntax.el
parent81fc9a7c28f5f120fc0e4a121902475bd5c2bfeb (diff)
downloademacs-8270a64d530212002dfdb39f4504c07100425bfb.tar.gz
* lisp/emacs-lisp/syntax.el (syntax-propertize): Flush extended region.
Diffstat (limited to 'lisp/emacs-lisp/syntax.el')
-rw-r--r--lisp/emacs-lisp/syntax.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
index 31fc67ec815..ac509b3465d 100644
--- a/lisp/emacs-lisp/syntax.el
+++ b/lisp/emacs-lisp/syntax.el
@@ -316,6 +316,9 @@ END) suitable for `syntax-propertize-function'."
(unless (eq funs
(cdr syntax-propertize-extend-region-functions))
(setq funs syntax-propertize-extend-region-functions)))))
+ ;; Flush ppss cache between the original value of `start' and that
+ ;; set above by syntax-propertize-extend-region-functions.
+ (syntax-ppss-flush-cache start)
;; Move the limit before calling the function, so the function
;; can use syntax-ppss.
(setq syntax-propertize--done end)