From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.devel Subject: tex-mode: \bf fontification bug Date: Sun, 09 Oct 2005 22:01:20 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128920595 26802 80.91.229.2 (10 Oct 2005 05:03:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2005 05:03:15 +0000 (UTC) Cc: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 10 07:03:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EOpn3-00043D-8Z for ged-emacs-devel@m.gmane.org; Mon, 10 Oct 2005 07:01:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOpn2-0006Ox-Pw for ged-emacs-devel@m.gmane.org; Mon, 10 Oct 2005 01:01:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EOpmu-0006Os-Uo for emacs-devel@gnu.org; Mon, 10 Oct 2005 01:01:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EOpmt-0006Og-G2 for emacs-devel@gnu.org; Mon, 10 Oct 2005 01:01:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOpmt-0006Od-CB for emacs-devel@gnu.org; Mon, 10 Oct 2005 01:01:23 -0400 Original-Received: from [128.32.35.215] (helo=roar.quarl.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EOpmr-0006q3-M8; Mon, 10 Oct 2005 01:01:21 -0400 Original-Received: by roar.quarl.org (Postfix, from userid 18378) id 282E45C0F7; Sun, 9 Oct 2005 22:01:20 -0700 (PDT) Original-To: Emacs Developement List X-Quack-Archive: 1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:43771 Archived-At: Synopsis: emacs -q /tmp/a.tex {\bf test} M-x font-lock-fontify-buffer error("No match %d in highlight %S" 2 (2 (tex-font-lock-append-prop (quote bold)) append)) font-lock-fontify-keywords-region(1 90 t) font-lock-default-fontify-region(1 90 t) . . This annoyingly interrupts every time I load a file with \bf. \bfseries is also fontified incorrectly. I believe the patch below fixes the bug. 2005-10-09 Karl Chen * textmodes/tex-mode.el (tex-font-lock-keywords-2): Fix bug in \bf fontification --- /usr/share/emacs/22.0.50/lisp/textmodes/tex-mode.el.gz +++ /tmp/buffer-content-29951lay @@ -576,7 +576,7 @@ 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) 2 '(tex-font-lock-append-prop 'bold) 'append))))) "Gaudy expressions to highlight in TeX modes.") -- Karl 2005-10-09 21:49