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#14598: 24.3; global-hl-line-mode + text-scale-adjust + next-line + scrolling Date: Wed, 12 Jun 2013 20:27:57 +0300 Message-ID: <83bo7bkzmq.fsf@gnu.org> References: <51B8641C.9060507@orcon.net.nz> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1371058091 12341 80.91.229.3 (12 Jun 2013 17:28:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Jun 2013 17:28:11 +0000 (UTC) Cc: 14598@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 12 19:28:11 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UmoqA-0004X3-Pv for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jun 2013 19:28:10 +0200 Original-Received: from localhost ([::1]:51200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmoqA-0007iS-B9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jun 2013 13:28:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umoq5-0007gL-8E for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2013 13:28:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Umoq3-0000nx-Ai for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2013 13:28:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umoq3-0000nr-86 for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2013 13:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Umoq3-0008La-3S for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2013 13:28:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jun 2013 17:28:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14598 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14598-submit@debbugs.gnu.org id=B14598.137105808232078 (code B ref 14598); Wed, 12 Jun 2013 17:28:03 +0000 Original-Received: (at 14598) by debbugs.gnu.org; 12 Jun 2013 17:28:02 +0000 Original-Received: from localhost ([127.0.0.1]:59182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Umoq2-0008LE-0C for submit@debbugs.gnu.org; Wed, 12 Jun 2013 13:28:02 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:57893) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Umopz-0008Kt-7G for 14598@debbugs.gnu.org; Wed, 12 Jun 2013 13:28:00 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MOA00F00J5QYA00@a-mtaout22.012.net.il> for 14598@debbugs.gnu.org; Wed, 12 Jun 2013 20:27:50 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOA00FQ7J6EY000@a-mtaout22.012.net.il>; Wed, 12 Jun 2013 20:27:50 +0300 (IDT) In-reply-to: <51B8641C.9060507@orcon.net.nz> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:75018 Archived-At: > Date: Thu, 13 Jun 2013 00:05:48 +1200 > From: Phil Sainty > > With global-hl-line-mode enabled (but not local hl-line-mode, > which is implemented differently) and with a smaller font via > text-scale-adjust, scrolling off the bottom of the window with > next-line gets incredibly glitchy. Unfortunately, my only suggestion is "don't do that": either don't use global-hl-line-mode, or don't make your default face smaller using text-scale-adjust. Emacs does all scroll calculations assuming the original default face size, which was in effect when the frame was created. This design assumes that the frame mostly uses that size, with occasional smaller or larger characters here and there; resizing _all_ of the text breaks that assumption. On top of that, global-hl-line-mode installs both pre-command-hook and post-command-hook which manipulate overlays, which kills all of the clever tricks Emacs has up its sleeve to deal with variable fonts and partially visible lines. What you see as result is basically a recenter on every C-n, except that sometimes Emacs scrolls by just a few pixels to make a line fully visible. Fixing this would mean a major redesign of the scrolling support in the display engine. Patches are welcome, as always. Until then, this will remain a wishlist, I'm afraid. Sorry.