Ihor Radchenko <yanta...@posteo.net> writes: > > One step back: What problem does this hack solve? [...] > > https://orgmode.org/list/87lfh2hk4k....@gmail.com/
I asked rhetorically ;-) But thanks, this is what I expected. > > How about something like this? > > > > - If point is at bob, we ensure that point is restored at bob - and > > likewise for eob. > > > > - When bob was visible in the prior view, we use window-start = 1 > > for the new view, too > > > > - But when bob was not visible in the last view, we try to restore the > > visible line number containing the window point, so that hitting f > > will show the cursor at the same vertical position as in the last > > view. Or maybe better: restore the vertical position of the > > beginning of the weekday point was in. > > I hope that my idea in the patch is good enough and that we do not need > to go into redisplay complications. These points would not mess with redisplay, just set window-start to something different than now. > - (set-window-start nil wstart))) > + (set-window-start nil wstart 'noforce))) Nice trick (or workaround), thanks. Yes, this solves my problem indeed, and behaves quite ok. Time will show whether I like the behavior, but it's a definite improvement, so I suggest we go with it for now. Thanks for your help, Michael.