changeset 66116:cff7c706ba17

(bibtex-font-lock-url): Catch when point past bound of search.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 16 Oct 2005 14:07:33 +0000
parents 8e27f6e245f1
children 634ee145589e
files lisp/textmodes/bibtex.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/bibtex.el	Sun Oct 16 13:28:59 2005 +0000
+++ b/lisp/textmodes/bibtex.el	Sun Oct 16 14:07:33 2005 +0000
@@ -2662,6 +2662,7 @@
         field bounds start end found)
     (bibtex-beginning-of-field)
     (while (and (not found)
+                (<= (point) bound)
 		(prog1 (re-search-forward bibtex-font-lock-url-regexp bound t)
 		  (setq field (match-string-no-properties 1)))
 		(setq bounds (bibtex-parse-field-text))