Commit 8f38189e authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(what-page): Make sure we don't inf-loop if

page-delimiter matches the empty string.
parent 77564fa4
2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
* textmodes/page.el (what-page): Make sure we don't inf-loop if
page-delimiter matches the empty string.
2009-09-16 Glenn Morris <rgm@gnu.org>
* emacs-lisp/bytecomp.el (byte-compile-not-obsolete-vars): Rename from
......
......@@ -153,6 +153,8 @@ thus showing a page other than the one point was originally in."
(opoint (point)))
(goto-char (point-min))
(while (re-search-forward page-delimiter opoint t)
(if (= (match-beginning 0) (match-end 0))
(forward-char 1))
(setq count (1+ count)))
(message "Page %d, line %d"
count
......
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