changeset 5022:61203f0197e8

Add `provide'. (narrow-to-page): Enable page-delimiter to span lines.
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Nov 1993 06:48:23 +0000
parents 47afb35f4968
children ff4c359fa626
files lisp/textmodes/page.el
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/page.el	Mon Nov 15 06:46:14 1993 +0000
+++ b/lisp/textmodes/page.el	Mon Nov 15 06:48:23 1993 +0000
@@ -87,8 +87,9 @@
     ;; 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 @@
 	(message "Page %d, line %d"
 		 count
 		 (1+ (count-lines (point) opoint)))))))
+
+;;; Place `provide' at end of file.
+(provide 'page)
 
 ;;; page.el ends here