Subject: bug#20663: page.el (forward-page): Avoid skipping pages

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 22 Apr 2022 14:05:31 +0200

Pierre Neidhardt <[email-masked]> writes:

> When `page-delimiter` starts at the beginning of the line and the position is
> also at the beginning of the line, calling `forward-page` will skip one page.
>
> Running `emacs -Q example.txt`:
>
> 	M-<
> 	C-x n p
> 	M->
> 	M-1 C-x n p
>
> This should bring us from page 1 to page 2, but page 3 gets displayed instead.
>
> The attached patch fixes it by changing the code to actually match its
> surrounding comments.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I've now fixed this problem in a somewhat different way than originally
suggested in Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no