From 3320fe2deeba6dcc40e934e8a03bef4945c86aff Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sat, 16 Mar 2019 20:11:45 -0400 Subject: * lisp/subr.el (combine-change-calls-1): Don't combine syntax-ppss flushes --- lisp/emacs-lisp/syntax.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lisp/emacs-lisp/syntax.el') diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el index 11cab1d693d..d09d6c12254 100644 --- a/lisp/emacs-lisp/syntax.el +++ b/lisp/emacs-lisp/syntax.el @@ -533,6 +533,11 @@ running the hook." ;; Setup the before-change function if necessary. (unless (or ppss-cache ppss-last) + ;; We should be either the very last function on + ;; before-change-functions or the very first on + ;; after-change-functions. + ;; Note: combine-change-calls-1 needs to be kept in sync + ;; with this! (add-hook 'before-change-functions 'syntax-ppss-flush-cache t t)) -- cgit v1.2.3