>From 21044fce6a50f91cc8274634d065858a1195d920 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Sun, 5 Sep 2010 15:49:16 +0100 Subject: [PATCH 5/6] Fix a bug in font-latex-add-to-syntax-alist because it modifies both the buffer local and global values of font-latex-syntax-alist. --- font-latex.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/font-latex.el b/font-latex.el index a3e37a86..d799d553 100644 --- a/font-latex.el +++ b/font-latex.el @@ -1125,7 +1125,8 @@ (defun font-latex-add-to-syntax-alist (list) cons pair as expected by `font-lock-defaults'. The function also triggers Font Lock to recognize the change." (make-local-variable 'font-latex-syntax-alist) - (nconc font-latex-syntax-alist list) + (set (make-local-variable 'font-latex-syntax-alist) + (append font-latex-syntax-alist list)) ;; FIXME: Are there situations where we need to alter `font-lock-defaults' ;; directly? ;; (dolist (entry list) -- 1.8.2