From: Eli Zaretskii <eliz@gnu.org>
To: Eli Barzilay <eli@barzilay.org>
Cc: 8476-done@debbugs.gnu.org
Subject: bug#8476: 23.2; One-line scrolling & jit-lock (or font-lock)
Date: Mon, 11 Apr 2011 17:29:25 +0300 [thread overview]
Message-ID: <831v18svy2.fsf@gnu.org> (raw)
In-Reply-To: <19875.2383.876530.364315@winooski.ccs.neu.edu>
> From: Eli Barzilay <eli@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.
next prev parent reply other threads:[~2011-04-11 14:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-11 13:59 bug#8476: 23.2; One-line scrolling & jit-lock (or font-lock) Eli Barzilay
2011-04-11 14:24 ` Juanma Barranquero
2011-04-11 14:28 ` Eli Barzilay
2011-04-11 14:29 ` Eli Zaretskii [this message]
2011-04-11 15:37 ` Juanma Barranquero
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=831v18svy2.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=8476-done@debbugs.gnu.org \
--cc=eli@barzilay.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.