At 10:37 AM 9/1/99 +0200, Jan Vroonhof wrote:
Andy Piper <andy(a)xemacs.org> writes:
> (this is 0 for normal scrolling). I have then modified window_scroll() so
> that if you are trying to scroll an increment < (height of the top line) /
> height of the default face then this offset will get incremented by an
> amount == height of the default face and point is left alone.
I really should have a look at your patch...Sigh.. What does this do
for the line_start_cache? My current opinion about the some of the
assert(cur_elt>=0) crashes that particular assert makes unwarranted
assumptions and that your change will increase the number of cases
of this. That isn't a problem with your patch but rather with the
line_start_cache, it contains loads of undocumented assumptions.
However, Hrvoje forgot to ask the obvious question:
What does (window-start) give in the case of a clipped first line?
Urgh. I think it will return what it returned before, I certainly didn't
change it and the marker isn't moved - the display lines are merely shifted
downwards.
andy
--------------------------------------------------------------
Dr Andy Piper
Senior Consultant Architect, BEA Systems Ltd