bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12401: scroll-preserve-screen-position broken with font height faces


From: Stefan Monnier
Subject: bug#12401: scroll-preserve-screen-position broken with font height faces
Date: Mon, 10 Sep 2012 16:42:21 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

>> > scroll-preserve-screen-position?  Is it just that doing N C-v's
>> > followed by N M-v's brings point to the same location where it was
>> > before this sequence of 2N commands?
>> I think this should be the main point, yes.
> For this to work, we would need to make sure that C-v followed by M-v
> end up with a window that has the same window-start as the one before
> C-v.  But this is impossible to ensure with the way we compute
> window-start, because the move_it family of functions used for that
> can only move forward; therefore moving back is necessarily
> implemented differently, and the results differ when variable-size
> fonts are present.

Indeed.

> IOW, this is a limitation of the current design of the
> window-scrolling functions that can only be lifted by redesigning.

Yup,


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]