emacs-devel
[Top][All Lists]
Advanced

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

Re: How to record the line number pixel width for each window.


From: Eli Zaretskii
Subject: Re: How to record the line number pixel width for each window.
Date: Fri, 06 Dec 2019 10:10:22 +0200

> Date: Thu, 05 Dec 2019 10:19:07 -0800
> From: Keith David Bershatsky <address@hidden>
> 
> How can I perfect the recorded value of the line number pixel width, and also 
> avoid expressly firing up a new instance of start_display and moving IT for 
> the sole purpose of determining the value for each window during 
> update_window (in dispnew.c)?

I guess you will have to write code that stores the last value
computed during redisplay in the window object.

Not that I think this is a good idea, because the display engine has
its own rules for which parts of the window it redraws, so you might
bump into situations where the value is not accurate.  Nor do I
understand why you don't like what line_number_display_width does,
because that's the right solution for this kind of problems.



reply via email to

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