[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8270a64: * lisp/emacs-lisp/syntax.el (syntax-proper

From: Stefan Monnier
Subject: [Emacs-diffs] master 8270a64: * lisp/emacs-lisp/syntax.el (syntax-propertize): Flush extended region.
Date: Wed, 22 Jun 2016 13:44:29 +0000 (UTC)

branch: master
commit 8270a64d530212002dfdb39f4504c07100425bfb
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * lisp/emacs-lisp/syntax.el (syntax-propertize): Flush extended region.
 lisp/emacs-lisp/syntax.el |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
index 31fc67e..ac509b3 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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]