;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/lincom.scm,v 1.117 1991/11/26 07:53:05 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/lincom.scm,v 1.118 1992/01/06 20:28:30 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-91 Massachusetts Institute of Technology
;;;
(define-command forward-page
"Move forward to page boundary. With arg, repeat, or go back if negative.
-A page boundary is any string in Page Delimiters, at a line's beginning."
+A page boundary is any line whose beginning matches the regexp page-delimiter."
"p"
(lambda (argument)
(move-thing forward-page argument 'FAILURE)))
(define-command backward-page
"Move backward to page boundary. With arg, repeat, or go fwd if negative.
-A page boundary is any string in Page Delimiters, at a line's beginning."
+A page boundary is any line whose beginning matches the regexp page-delimiter."
"p"
(lambda (argument)
(move-thing backward-page argument 'FAILURE)))
(mark1+ start)
start))
(let ((end* (line-start end 0)))
- (if (mark< end* point)
- end
- end*))))))
+ (if (and (mark<= point end*)
+ (mark= (re-match-forward
+ (ref-variable page-delimiter)
+ end*
+ end)
+ end))
+ end*
+ end))))))
\f
(define-command count-lines-page
"Report number of lines on current page."