Commit 6073d8f4 authored by Leo Liu's avatar Leo Liu

* progmodes/octave.el (octave-font-lock-texinfo-comment):

Fix invalid search bound error: wrong side of point.
parent 8fdeaad5
......@@ -3,6 +3,8 @@
* progmodes/octave.el (octave-font-lock-keywords): Fix error
during redisplay.
(octave-goto-function-definition, octave-find-definition): Minor tweaks.
(octave-font-lock-texinfo-comment): Fix invalid search bound
error: wrong side of point.
2013-05-14 Glenn Morris <rgm@gnu.org>
......
......@@ -1067,7 +1067,8 @@ q: Don't fix\n" func file))
(font-lock-add-keywords
nil
`((,(lambda (limit)
(while (and (search-forward "-*- texinfo -*-" limit t)
(while (and (< (point) limit)
(search-forward "-*- texinfo -*-" limit t)
(octave-in-comment-p))
(let ((beg (nth 8 (syntax-ppss)))
(end (progn
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment