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

From: Eli Zaretskii <[email-masked]>
Date: Sun, 09 Jun 2013 21:25:46 +0300

> Date: Sun, 9 Jun 2013 19:16:06 +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.

You mean, a character that is outside the overlay, I presume.

> > > 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.

It would help if you could show a recipe with one of these starting
from "emacs -Q".