[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10105: 24.0.91; Possible bug in `scroll-conservatively'

From: Dani Moncayo
Subject: bug#10105: 24.0.91; Possible bug in `scroll-conservatively'
Date: Mon, 28 Nov 2011 13:12:48 +0100

>> 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'm quite sure this is by design: the last C-s scrolls _up_, which
> under scroll-conservatively means Emacs should put point at the
> topmost line.  If you'd get to that line by C-p, that would be where
> point should be displayed, right?
> Why did you expect it to be at the bottom?

Because, after the "failing" C-s, the Isearch begins again from the
top of the buffer, so that the search direction is always (at least
conceptually) from top to bottom, i.e. _fordward_.  See info node
"(emacs)Repeat Isearch".

> And does the custom-set-faces even make a difference (I cannot test
> that where I'm typing this)?

Oh no, you're right.  Thus step #2 in the above recipe is unnecessary (sorry).

Dani Moncayo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]