GNU bug report logs - #8476
23.2; One-line scrolling & jit-lock (or font-lock)

Previous Next

Package: emacs;

Reported by: Eli Barzilay <eli <at> barzilay.org>

Date: Mon, 11 Apr 2011 14:01:02 UTC

Severity: normal

Found in version 23.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 8476-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Eli Barzilay <eli <at> barzilay.org>
Cc: 8476-done <at> debbugs.gnu.org
Subject: Re: bug#8476: 23.2; One-line scrolling & jit-lock (or font-lock)
Date: Mon, 11 Apr 2011 17:29:25 +0300
> From: Eli Barzilay <eli <at> barzilay.org>
> Date: Mon, 11 Apr 2011 09:59:43 -0400
> Cc: 
> 
> Like many others, I've been trying to get Emacs to scroll the display
> by one line when the cursor goes out of the displayed area.  In my
> settings I have
> 
>   scroll-step 1
>   scroll-conservatively 10000
>   scroll-margin 0
> 
> I know that in theory only the second is needed, but I still got the
> recentering behavior.

This has been resolved, I hope for good, in the current development
sources.  See bug #6671.

The problem was that Emacs would always recenter whenever it exhausted
all its wits to get to the new position of point from the old one by
line-wise movement.  However, such recentering is not necessary even
in that case, because even if we jump to an entirely new location in
the buffer, we can still position point at the last or first screen
line.  Code to do that was added a couple of weeks ago (on Mar 31, to
be exact).

If you can upgrade to the development version or to some recent enough
snapshot, you should see that problem gone.

> I just tried disabling `jit-lock-mode', and to my surprise that made
> the problem go away, but it also disabled highlighting new text.

JIT Lock is one of the reasons that trigger recentering (because JIT
Lock slows down scrolling and makes more probable the situation where
redisplay cannot keep up and eventually becomes confused and
recenters), but it's not the only one.  Displaying complex scripts or
fonts will also have that effect (try "C-h H", for example), as will
simply leaning on the down arrow on a keyboard with high auto-repeat
rate.  The root cause was elsewhere, as explained above.

I'm closing this bug report.  If you do upgrade to Emacs 24 and see
recentering, feel free to re-open it.

In any case, thank you for your report.




This bug report was last modified 14 years and 48 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.