Subject: bug#14582: 24.3.50.1; Strange overlay behavior, when window-start is inside an overlay.

From: E Sabof <[email-masked]>
Date: Sun, 9 Jun 2013 19:16:06 +0100

On Sun, Jun 9, 2013 at 6:52 PM, Eli Zaretskii <[email-masked]> wrote:

> > Date: Sun, 9 Jun 2013 18:37:12 +0100
> > From: E Sabof <[email-masked]>
> > Cc: [email-masked]
> >
> > I think the correct behavior would be to adjust the window-position.
>
> Adjust to where?
>

Either to the next or previous character starting a line.

>
> > Yes, it happens quite frequently after (fold-dwim-hide-all), and maybe in
> > similar commands.
>
> Who calls set-window-start there, and why do they set window-start in
> the middle of text that is hidden?
>

There is no need to call it explicitly. Part of a function might be before
the window start, and part after. If one evokes hs-hide-all (to which
fold-dwim-hide-all
delegates), the same thing will happen.