page-delimiter matches the empty string.
+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
(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