From: Richard M. Stallman Date: Sat, 15 Oct 2005 13:38:59 +0000 (+0000) Subject: (tex-font-lock-keywords-2): Fix bug in \bf fontification. X-Git-Tag: emacs-pretest-22.0.90~6600 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=21ea364992a60f547a1c9b0cd7c14cdba9c6b53a;p=emacs.git (tex-font-lock-keywords-2): Fix bug in \bf fontification. --- diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 3623c788882..adb5f9c902b 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -576,7 +576,7 @@ An alternative value is \" . \", if you use a font with a narrow period." 2 '(tex-font-lock-append-prop 'italic) 'append) ;; This is separate from the previous one because of cases like ;; {\em foo {\bf bar} bla} where both match. - (list (concat "\\\\\\(bf\\(series\\)?\\)\\>" args) + (list (concat "\\\\\\(bf\\(?:series\\)?\\)\\>" args) 3 '(tex-font-lock-append-prop 'bold) 'append))))) "Gaudy expressions to highlight in TeX modes.")