From: Eli Zaretskii <eliz@gnu.org>
To: Phil Sainty <psainty@orcon.net.nz>
Cc: 14598@debbugs.gnu.org
Subject: bug#14598: 24.3; global-hl-line-mode + text-scale-adjust + next-line + scrolling
Date: Wed, 12 Jun 2013 20:27:57 +0300 [thread overview]
Message-ID: <83bo7bkzmq.fsf@gnu.org> (raw)
In-Reply-To: <51B8641C.9060507@orcon.net.nz>
> Date: Thu, 13 Jun 2013 00:05:48 +1200
> From: Phil Sainty <psainty@orcon.net.nz>
>
> 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.
next prev parent reply other threads:[~2013-06-12 17:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-12 12:05 bug#14598: 24.3; global-hl-line-mode + text-scale-adjust + next-line + scrolling Phil Sainty
2013-06-12 17:27 ` Eli Zaretskii [this message]
2013-06-15 11:45 ` E Sabof
2013-06-15 11:55 ` Eli Zaretskii
2013-06-15 12:10 ` E Sabof
2013-06-15 12:45 ` Eli Zaretskii
2013-06-15 22:48 ` E Sabof
2013-06-16 2:45 ` Eli Zaretskii
2013-06-16 15:16 ` E Sabof
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83bo7bkzmq.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=14598@debbugs.gnu.org \
--cc=psainty@orcon.net.nz \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).