emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/font-lock.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/font-lock.el
Date: Wed, 13 Jul 2005 00:39:15 -0400

Index: emacs/lisp/font-lock.el
diff -c emacs/lisp/font-lock.el:1.268 emacs/lisp/font-lock.el:1.269
*** emacs/lisp/font-lock.el:1.268       Mon Jul  4 23:08:54 2005
--- emacs/lisp/font-lock.el     Wed Jul 13 04:39:14 2005
***************
*** 1473,1479 ****
        (while (and (< (point) end)
                  (if (stringp matcher)
                      (re-search-forward matcher end t)
!                   (funcall matcher end)))
        (when (and font-lock-multiline
                   (>= (point)
                       (save-excursion (goto-char (match-beginning 0))
--- 1473,1483 ----
        (while (and (< (point) end)
                  (if (stringp matcher)
                      (re-search-forward matcher end t)
!                   (funcall matcher end))
!                   ;; Beware empty string matches since they will
!                   ;; loop indefinitely.
!                   (or (> (point) (match-beginning 0))
!                       (progn (forward-char 1) t)))
        (when (and font-lock-multiline
                   (>= (point)
                       (save-excursion (goto-char (match-beginning 0))




reply via email to

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