From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10105: 24.0.91; Possible bug in `scroll-conservatively' Date: Tue, 29 Nov 2011 18:55:36 +0200 Message-ID: <83liqy6f7b.fsf@gnu.org> References: <83mxbk8mhn.fsf@gnu.org> <83d3cg8aww.fsf@gnu.org> <87ty5n76ib.fsf@mail.jurta.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1322585779 30994 80.91.229.12 (29 Nov 2011 16:56:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2011 16:56:19 +0000 (UTC) Cc: 10105@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 29 17:56:14 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RVQyb-0000QX-Ea for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Nov 2011 17:56:13 +0100 Original-Received: from localhost ([::1]:46356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVQyb-0007KI-3I for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Nov 2011 11:56:13 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVQyV-0007Iq-SL for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2011 11:56:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVQyQ-000187-7k for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2011 11:56:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVQyQ-000182-4r for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2011 11:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RVR0L-0002xO-Rf for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2011 11:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Nov 2011 16:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10105 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10105-submit@debbugs.gnu.org id=B10105.132258586411343 (code B ref 10105); Tue, 29 Nov 2011 16:58:01 +0000 Original-Received: (at 10105) by debbugs.gnu.org; 29 Nov 2011 16:57:44 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVR02-0002wt-WF for submit@debbugs.gnu.org; Tue, 29 Nov 2011 11:57:43 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVQzz-0002wj-OO for 10105@debbugs.gnu.org; Tue, 29 Nov 2011 11:57:41 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LVF00800LJQJI00@a-mtaout22.012.net.il> for 10105@debbugs.gnu.org; Tue, 29 Nov 2011 18:55:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.122.78]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LVF008U5LOG0U50@a-mtaout22.012.net.il>; Tue, 29 Nov 2011 18:55:29 +0200 (IST) In-reply-to: <87ty5n76ib.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 29 Nov 2011 11:58:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54425 Archived-At: > From: Juri Linkov > Cc: Eli Zaretskii , 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.