From: Richard M. Stallman Date: Mon, 15 Nov 1993 06:48:23 +0000 (+0000) Subject: Add `provide'. X-Git-Tag: emacs-19.34~10829 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8105b77ee3d636aa4dadcd729ffec8e10f60da0d;p=emacs.git Add `provide'. (narrow-to-page): Enable page-delimiter to span lines. --- diff --git a/lisp/textmodes/page.el b/lisp/textmodes/page.el index 32e505eaae6..dc86e6997be 100644 --- a/lisp/textmodes/page.el +++ b/lisp/textmodes/page.el @@ -87,8 +87,9 @@ thus showing a page other than the one point was originally in." ;; If we stopped due to end of buffer, stay there. ;; If we stopped after a page delimiter, put end of restriction ;; at the beginning of that line. - (if (save-excursion (beginning-of-line) - (looking-at page-delimiter)) + (if (save-excursion + (goto-char (match-beginning 0)) ; was (beginning-of-line) + (looking-at page-delimiter)) (beginning-of-line)) (narrow-to-region (point) (progn @@ -136,5 +137,8 @@ thus showing a page other than the one point was originally in." (message "Page %d, line %d" count (1+ (count-lines (point) opoint))))))) + +;;; Place `provide' at end of file. +(provide 'page) ;;; page.el ends here