[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20663: page.el (forward-page): Avoid skipping pages
From: |
Marcin Borkowski |
Subject: |
bug#20663: page.el (forward-page): Avoid skipping pages |
Date: |
Wed, 13 Apr 2016 22:54:25 +0200 |
User-agent: |
mu4e 0.9.13; emacs 25.1.50.8 |
On 2016-04-13, at 20:14, John Mastro <john.b.mastro@gmail.com> wrote:
> Marcin Borkowski <mbork@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.)
Well, I'm fine with that version, too - but I'd insist that we should
settle on _something_ and make it clear in the docs.
BTW, the argument for my variant would be that a new page would always
start at beginning of (some) line (assuming that `page-delimiter' starts
with "^", as it does by default). (I don't claim that it's especially
strong argument, I just wanted to mention it.)
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
- bug#20663: page.el (forward-page): Avoid skipping pages, Marcin Borkowski, 2016/04/09
- bug#20663: page.el (forward-page): Avoid skipping pages, Eli Zaretskii, 2016/04/09
- bug#20663: page.el (forward-page): Avoid skipping pages, Marcin Borkowski, 2016/04/09
- bug#20663: page.el (forward-page): Avoid skipping pages, Eli Zaretskii, 2016/04/09
- bug#20663: page.el (forward-page): Avoid skipping pages, Pierre Neidhardt, 2016/04/09
- bug#20663: page.el (forward-page): Avoid skipping pages, Marcin Borkowski, 2016/04/11
- bug#20663: page.el (forward-page): Avoid skipping pages, Eli Zaretskii, 2016/04/11
- bug#20663: page.el (forward-page): Avoid skipping pages, Marcin Borkowski, 2016/04/13
- bug#20663: page.el (forward-page): Avoid skipping pages, John Mastro, 2016/04/13
- bug#20663: page.el (forward-page): Avoid skipping pages,
Marcin Borkowski <=
- bug#20663: page.el (forward-page): Avoid skipping pages, Marcin Borkowski, 2016/04/16
- bug#20663: page.el (forward-page): Avoid skipping pages, Eli Zaretskii, 2016/04/16
- bug#20663: page.el (forward-page): Avoid skipping pages, Marcin Borkowski, 2016/04/20
- bug#20663: page.el (forward-page): Avoid skipping pages, Pierre Neidhardt, 2016/04/27