Commit 8105b77e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

Add `provide'.

(narrow-to-page): Enable page-delimiter to span lines.
parent 98d87352
......@@ -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
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