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#8476: 23.2; One-line scrolling & jit-lock (or font-lock) Date: Mon, 11 Apr 2011 17:29:25 +0300 Message-ID: <831v18svy2.fsf@gnu.org> References: <19875.2383.876530.364315@winooski.ccs.neu.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1302532660 28584 80.91.229.12 (11 Apr 2011 14:37:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2011 14:37:40 +0000 (UTC) Cc: 8476-done@debbugs.gnu.org To: Eli Barzilay Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 11 16:37:35 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9IFD-0004OU-JL for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2011 16:37:35 +0200 Original-Received: from localhost ([127.0.0.1]:48673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9IF9-0004WW-4O for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2011 10:37:31 -0400 Original-Received: from [140.186.70.92] (port=53756 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9IF2-0004P8-Tj for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 10:37:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9IEz-0001IS-VR for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 10:37:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9IEz-0001IM-Qy for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 10:37:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q9I9q-0000AI-Pc for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 10:32:02 -0400 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Apr 2011 14:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 8476 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 8476@debbugs.gnu.org, eliz@gnu.org Original-Received: via spool by 8476-done@debbugs.gnu.org id=D8476.1302532294589 (code D ref 8476); Mon, 11 Apr 2011 14:32:02 +0000 Original-Received: (at 8476-done) by debbugs.gnu.org; 11 Apr 2011 14:31:34 +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 1Q9I9O-00009S-DU for submit@debbugs.gnu.org; Mon, 11 Apr 2011 10:31:34 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9I9L-00009D-OM for 8476-done@debbugs.gnu.org; Mon, 11 Apr 2011 10:31:33 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LJH00E00S5JPX00@a-mtaout20.012.net.il> for 8476-done@debbugs.gnu.org; Mon, 11 Apr 2011 17:31:10 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.31.148]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LJH00ESASBWDL60@a-mtaout20.012.net.il>; Mon, 11 Apr 2011 17:31:10 +0300 (IDT) In-reply-to: <19875.2383.876530.364315@winooski.ccs.neu.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Apr 2011 10:32:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45758 Archived-At: > From: Eli Barzilay > 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.