]> git.eshelyaron.com Git - emacs.git/commitdiff
Add `provide'.
authorRichard M. Stallman <rms@gnu.org>
Mon, 15 Nov 1993 06:48:23 +0000 (06:48 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 15 Nov 1993 06:48:23 +0000 (06:48 +0000)
(narrow-to-page): Enable page-delimiter to span lines.

lisp/textmodes/page.el

index 32e505eaae603784d269280b3e79924ea5edf2eb..dc86e6997be57fa51acc18c0b945f7fa9d505650 100644 (file)
@@ -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)))))))
+\f
+;;; Place `provide' at end of file.
+(provide 'page)
 
 ;;; page.el ends here