GNU bug report logs - #20663
page.el (forward-page): Avoid skipping pages

Previous Next

Package: emacs;

Reported by: Pierre Neidhardt <ambrevar <at> gmail.com>

Date: Tue, 26 May 2015 17:23:02 UTC

Severity: minor

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 20663 <at> debbugs.gnu.org (full text, mbox):

From: John Mastro <john.b.mastro <at> gmail.com>
To: Marcin Borkowski <mbork <at> mbork.pl>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 20663 <at> debbugs.gnu.org, ambrevar <at> gmail.com
Subject: Re: bug#20663: page.el (forward-page): Avoid skipping pages
Date: Wed, 13 Apr 2016 13:14:46 -0700
Marcin Borkowski <mbork <at> mbork.pl> wrote:
> My proposal is that a "page separator" would be a position in the buffer
> where (looking-at-p page-delimiter) is true, and if point is at such
> a place, then we consider it on the next page.  I.e., in this situation
>
> abcabcabc
> -!-^L
> cbacbacba
>
> the point is already on the second page (unlike the default Emacs
> behavior).

That seems somewhat confusing to me. Intuitively, I would expect the new
page to start after the delimiter, not immediately before it

For comparison, when (looking-at-p "$") returns non-nil, that means
point is at the end of the current line (i.e. before the "\n"), not the
beginning of the next one. (Of course, they're not exactly the same,
since page-delimiter can match multiple characters.)

-- 
john




This bug report was last modified 3 years and 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.