On Sun, Jun 9, 2013 at 6:52 PM, Eli Zaretskii wrote: > > Date: Sun, 9 Jun 2013 18:37:12 +0100 > > From: E Sabof > > Cc: 14582@debbugs.gnu.org > > > > 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.