Subject: Re: bug#16475: enhancement request: remove vertical scroll bar automatically when not needed

From: Eli Zaretskii <[email-masked]>
Date: Thu, 26 Oct 2017 20:07:39 +0300

> Date:  Thu, 26 Oct 2017 09:03:10 -0700
> From:  Keith David Bershatsky <[email-masked]>
> Cc:  [email-masked],Martin Rudalics <[email-masked]>
> 
> The values for window-start and window-end will not necessarily be accurate until somewhere towards the end of redisplay.  A test that relies upon those values to add/remove scroll bars will often fail.

We have the ability to check whether the entire buffer fits in the
window without actually displaying it.  The move_it_to function can be
used for that.