auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] Changes to auctex/style/flashcards.el,v


From: Ralf Angeli
Subject: [AUCTeX-diffs] Changes to auctex/style/flashcards.el,v
Date: Sun, 19 Aug 2007 20:23:32 +0000

CVSROOT:        /cvsroot/auctex
Module name:    auctex
Changes by:     Ralf Angeli <angeli>    07/08/19 20:23:32

Index: flashcards.el
===================================================================
RCS file: /cvsroot/auctex/auctex/style/flashcards.el,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- flashcards.el       23 Apr 2007 18:53:55 -0000      1.1
+++ flashcards.el       19 Aug 2007 20:23:32 -0000      1.2
@@ -50,13 +50,11 @@
    ;; Fontification
    (when (and (featurep 'font-latex)
              (eq TeX-install-font-lock 'font-latex-setup))
-     (mapcar (lambda (keyword)
-              (add-to-list 'font-latex-match-variable-keywords-local keyword))
-            '("cardfrontstyle" "cardfrontfoot" "cardbackstyle"
-              "cardfrontheadstyle" "cardfrontfootstyle"))
-     (font-latex-match-variable-make)
-     ;; Tell font-lock about the update.
-     (setq font-lock-set-defaults nil)
-     (font-lock-set-defaults))))
+     (font-latex-add-keywords '(("cardfrontstyle" "[{")
+                               ("cardfrontfoot" "{")
+                               ("cardbackstyle" "{")
+                               ("cardfrontheadstyle" "[{")
+                               ("cardfrontfootstyle" "[{"))
+                             'variable))))
 
 ;;; flashcards.el ends here




reply via email to

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