Index: auctex/font-latex.el
diff -u auctex/font-latex.el:5.118 auctex/font-latex.el:5.119
--- auctex/font-latex.el:5.118 Wed May 11 14:54:11 2005
+++ auctex/font-latex.el Thu May 12 14:15:23 2005
@@ -1267,14 +1267,14 @@
(if (and asterisk (eq (following-char) ?\*))
(forward-char 1))
(setq kend (point))
- (while (font-latex-forward-comment))
+ (while (and (not (eobp)) (font-latex-forward-comment)))
;; Optional arguments [...]
(while (eq (following-char) ?\[)
(unless opt-arg (setq sbeg (point)) (setq opt-arg t))
(if (font-latex-find-matching-close ?\[ ?\])
(progn
(setq send (point))
- (while (font-latex-forward-comment)))
+ (while (and (not (eobp)) (font-latex-forward-comment))))
(setq cache-reset t)
(setq send (point-max))
(goto-char send)))
@@ -1286,7 +1286,7 @@
(if (font-latex-find-matching-close ?\{ ?\})
(progn
(setq cend (point))
- (while (font-latex-forward-comment)))
+ (while (and (not (eobp)) (font-latex-forward-comment))))
(setq cache-reset t)
(setq cend (point-max))
(goto-char cend)
_______________________________________________
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs