* tex-mode: \bf fontification bug
@ 2005-10-10 5:01 Karl Chen
2005-10-10 9:48 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Karl Chen @ 2005-10-10 5:01 UTC (permalink / raw)
Cc: Stefan Monnier
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 <quarl@cs.berkeley.edu>
* 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: tex-mode: \bf fontification bug
2005-10-10 5:01 tex-mode: \bf fontification bug Karl Chen
@ 2005-10-10 9:48 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2005-10-10 9:48 UTC (permalink / raw)
Cc: Stefan Monnier, Emacs Developement List
Karl Chen <quarl@cs.berkeley.edu> writes:
> 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))
Thanks, I have installed a fix.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-10 9:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-10 5:01 tex-mode: \bf fontification bug Karl Chen
2005-10-10 9:48 ` Andreas Schwab
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.