unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Juri Linkov <juri@jurta.org>
Cc: 10105@debbugs.gnu.org
Subject: bug#10105: 24.0.91; Possible bug in `scroll-conservatively'
Date: Tue, 29 Nov 2011 18:55:36 +0200	[thread overview]
Message-ID: <83liqy6f7b.fsf@gnu.org> (raw)
In-Reply-To: <87ty5n76ib.fsf@mail.jurta.org>

> From: Juri Linkov <juri@jurta.org>
> Cc: Eli Zaretskii <eliz@gnu.org>,  10105@debbugs.gnu.org
> Date: Tue, 29 Nov 2011 09:05:04 +0200
> 
> > 1. Eval: "(setq scroll-conservatively 101)".
> > 2. Eval: "(custom-set-faces '(mode-line ((t (:box (:line-width 1))))))".
> > 3. Visit the attached file.
> > 4. Type "C-s p C-s C-s C-s".
> > --> At this point, the Isearch has moved point to line "p1", but it's
> > positioned at the top of the window.  It should be at the bottom.
> 
> I've just noticed that Firefox behaves exactly the same as Emacs.
> When typing repeatedly `F3' and wrapping around to the beginning
> of the Web page, the search string is highlighted and positioned
> at the top of the Firefox window, not at the bottom.  Firefox imitates
> Emacs-like Isearch.  So we should not disappoint users by changing
> the traditional behavior in Emacs.

I agree with your conclusion, but for the record I'd like to point out
that what you see in Emacs 24 is not the traditional behavior, not in
this case.  All versions of Emacs before 24 would not keep point at
the first or last screen line, they would sooner or later center point
in the window.  Emacs 23.3, in particular, centers point already after
the first "C-s p"; Emacs 22.3 centers it after the next C-s.

Only Emacs 24 behaves consistently when scroll-conservatively is set
to a large value.  IOW, the default "recentering" is now completely
replaced with code that puts point on the first or last line in the
window (barring bugs, of course) when this variable is set.





      reply	other threads:[~2011-11-29 16:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-22  9:51 bug#10105: 24.0.91; Possible bug in `scroll-conservatively' Dani Moncayo
2011-11-25 11:33 ` Eli Zaretskii
2011-11-25 15:43   ` Eli Zaretskii
2011-11-25 16:38     ` Dani Moncayo
2011-11-28 10:38     ` Dani Moncayo
2011-11-28 12:01       ` Eli Zaretskii
2011-11-28 12:12         ` Dani Moncayo
2011-11-28 13:08           ` Eli Zaretskii
2011-11-28 17:37             ` Stefan Monnier
2011-11-28 18:11               ` Eli Zaretskii
2011-11-29  7:05       ` Juri Linkov
2011-11-29 16:55         ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83liqy6f7b.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=10105@debbugs.gnu.org \
    --cc=juri@jurta.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).