Subject: Re: bug#12600: 24.2.50; linum-mode: line numbers in fringe do not refresh when resizing frame

From: Eli Zaretskii <[email-masked]>
Date: Mon, 08 Oct 2012 17:48:31 +0200

> Date: Mon, 08 Oct 2012 11:17:44 +0200
> From: martin rudalics <[email-masked]>
> CC: Christoph Scholtes <[email-masked]>, [email-masked]
> 
>  >> emacs -Q
>  >>
>  >> Load large file, e.g. emacs.c. Buffer content must exceed one
>  >> screen.
>  >>
>  >> Enable linum mode with `M-x linum-mode'.
>  >>
>  >> Shrink frame. Maximize frame. Fringe on the left side is missing line
>  >> numbers.
>  >
>  > What do you mean by "shrink" and "maximize", exactly?  Clicking on the
>  > maximize button on the upper left corner of the Emacs frame (on
>  > MS-Windows) doesn't reproduce the problem.
> 
> It does so here.  For whatever reason the position reported by
> `window-end' in `linum-update-window' is still the same as before the
> maximize.  Moving the cursor by one character makes the numbers appear.

I don't think we can trust redisplay to have updated the screen before
the hooks used by linum-mode run.