[Top][All Lists]

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

[elpa] externals/auctex 9c105a2 06/27: Trigger refontification in font-l

From: Tassilo Horn
Subject: [elpa] externals/auctex 9c105a2 06/27: Trigger refontification in font-latex-add-to-syntax-alist.
Date: Sat, 27 Jun 2020 03:17:42 -0400 (EDT)

branch: externals/auctex
commit 9c105a2d76d39b54f42e4a0eefcf6388533176a7
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>

    Trigger refontification in font-latex-add-to-syntax-alist.
    * font-latex.el (font-latex-add-to-syntax-alist): Trigger refontification.
 font-latex.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/font-latex.el b/font-latex.el
index deb67a2..c74fa6c 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1228,7 +1228,10 @@ triggers Font Lock to recognize the change."
   ;; `font-latex-setup' in order to have `font-lock-defaults' be in sync.
   (dolist (elt list)
-    (modify-syntax-entry (car elt) (cdr elt) font-lock-syntax-table)))
+    (modify-syntax-entry (car elt) (cdr elt) font-lock-syntax-table))
+  ;; Trigger refontification.
+  (when (fboundp 'font-lock-flush)
+    (font-lock-flush)))
 (defun font-latex-syntax-propertize-function (start end)
   "The `syntax-propertize-function' for (La)TeX documents."

reply via email to

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