mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-11 08:30:45 -08:00
* lisp/emacs-lisp/syntax.el (syntax-propertize): Fix bug#29767
This commit is contained in:
parent
80463a43da
commit
dbb4aac212
1 changed files with 8 additions and 0 deletions
|
|
@ -291,6 +291,14 @@ END) suitable for `syntax-propertize-function'."
|
||||||
;; (message "Needs to syntax-propertize from %s to %s"
|
;; (message "Needs to syntax-propertize from %s to %s"
|
||||||
;; syntax-propertize--done pos)
|
;; syntax-propertize--done pos)
|
||||||
(set (make-local-variable 'parse-sexp-lookup-properties) t)
|
(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
|
(save-excursion
|
||||||
(with-silent-modifications
|
(with-silent-modifications
|
||||||
(make-local-variable 'syntax-propertize--done) ;Just in case!
|
(make-local-variable 'syntax-propertize--done) ;Just in case!
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue