* bug#4445: what-page and first line of page?
[not found] ` <jwviqfl57fe.fsf-monnier+emacs@gnu.org>
@ 2009-09-16 11:15 ` Juanma Barranquero
[not found] ` <f7ccd24b0909160415y1e4e2200pe09806970192c1c0@mail.gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Juanma Barranquero @ 2009-09-16 11:15 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Mario Lang, Emacs Bug Tracker, emacs-devel
On Tue, Sep 15, 2009 at 03:22, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> I removed the beginning-of-line (has been there since the original
> commit 1.1 in 1989).
Strangely enough, that `beginning-of-line' somewhat masked a bug in
`what-page' that happens when `re-search-forward' matches but does not
move the point.
For example,
emacs -Q lisp/ChangeLog
M-x what-page <RET> => "Page 1, line 1"
but
emacs -Q lisp/ChangeLog
<right>
M-x what-page <RET> => loops until C-g
This happens in ChangeLog files because `page-delimiter' has the value
"^\\<\\|^\f", which matches the empty string at the beginning of the
buffer.
I said the change "somewhat masked" the bug because before it, when
the point was on the first line of a ChangeLog, opoint was 1 (because
of the beginning-of-line), so the match failed and `what-page'
terminated. It only looped from line 2 on, while now it loops from
point 2 on.
Juanma
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#4447: what-page and first line of page?
[not found] ` <f7ccd24b0909160415y1e4e2200pe09806970192c1c0@mail.gmail.com>
@ 2009-09-16 13:15 ` Stefan Monnier
[not found] ` <jwvr5u73uao.fsf-monnier+emacs@gnu.org>
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2009-09-16 13:15 UTC (permalink / raw)
To: Juanma Barranquero; +Cc: Mario Lang, Emacs Bug Tracker, emacs-devel
> Strangely enough, that `beginning-of-line' somewhat masked a bug in
> `what-page' that happens when `re-search-forward' matches but does not
> move the point.
Thanks, fixed,
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#4445: what-page and first line of page?
[not found] ` <jwvr5u73uao.fsf-monnier+emacs@gnu.org>
@ 2009-09-16 13:36 ` Juanma Barranquero
0 siblings, 0 replies; 3+ messages in thread
From: Juanma Barranquero @ 2009-09-16 13:36 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Mario Lang, 4445, Emacs developers
On Wed, Sep 16, 2009 at 15:15, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> Thanks, fixed,
Not yet, I think.
2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
^
Page 1, line 1
2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
^
Page 2, line 1
2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
^
Page 2, line 2
though I'd say that's a problem with the `page-delimiter' regexp for
change-log-mode, not with `what-page' itself.
Juanma
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-16 13:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <87tyz5ajte.fsf@x2.delysid.org>
[not found] ` <jwviqfl57fe.fsf-monnier+emacs@gnu.org>
2009-09-16 11:15 ` bug#4445: what-page and first line of page? Juanma Barranquero
[not found] ` <f7ccd24b0909160415y1e4e2200pe09806970192c1c0@mail.gmail.com>
2009-09-16 13:15 ` bug#4447: " Stefan Monnier
[not found] ` <jwvr5u73uao.fsf-monnier+emacs@gnu.org>
2009-09-16 13:36 ` bug#4445: " Juanma Barranquero
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).