auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] Changes to auctex/font-latex.el


From: Ralf Angeli
Subject: [AUCTeX-diffs] Changes to auctex/font-latex.el
Date: Thu, 12 May 2005 10:15:23 -0400

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)




reply via email to

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