[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 dbb4aac: * lisp/emacs-lisp/syntax.el (syntax-prop
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] emacs-26 dbb4aac: * lisp/emacs-lisp/syntax.el (syntax-propertize): Fix bug#29767 |
Date: |
Thu, 11 Jan 2018 10:11:46 -0500 (EST) |
branch: emacs-26
commit dbb4aac212833035203efb969339b71aff86f2ea
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>
* lisp/emacs-lisp/syntax.el (syntax-propertize): Fix bug#29767
---
lisp/emacs-lisp/syntax.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
index a1b70b1..6106720 100644
--- a/lisp/emacs-lisp/syntax.el
+++ b/lisp/emacs-lisp/syntax.el
@@ -291,6 +291,14 @@ END) suitable for `syntax-propertize-function'."
;; (message "Needs to syntax-propertize from %s to %s"
;; syntax-propertize--done pos)
(set (make-local-variable 'parse-sexp-lookup-properties) t)
+ (when (< syntax-propertize--done (point-min))
+ ;; *Usually* syntax-propertize is called via syntax-ppss which
+ ;; takes care of adding syntax-ppss-flush-cache to b-c-f, but this
+ ;; is not *always* the case, so since we share a single "flush"
function
+ ;; between syntax-ppss and syntax-propertize, we also have to make
+ ;; sure the flush function is installed here (bug#29767).
+ (add-hook 'before-change-functions
+ #'syntax-ppss-flush-cache t t))
(save-excursion
(with-silent-modifications
(make-local-variable 'syntax-propertize--done) ;Just in case!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 dbb4aac: * lisp/emacs-lisp/syntax.el (syntax-propertize): Fix bug#29767,
Stefan Monnier <=