At 10:23 PM 8/29/99 +0200, Hrvoje Niksic wrote:
Try this: visit a largish file, and evaluate:
(progn
(goto-char (point-max))
(window-start))
It returns 1 for me. To make it right, I need this:
(progn
(goto-char (point-max))
(sit-for 0)
(window-start))
...but the forced redisplay slows things down and potentially makes
them uglier.
The problem is you have to calculate display lines to get this sort of
result, cf current-pixel-column. It is possible however to generate them
(reasonably fast), without actually displaying them (slow). This is what
the gutter does to achieve autosizing. None of this is lispable however -
you would have to do each on a cas-by-case basis.
andy
--------------------------------------------------------------
Dr Andy Piper
Senior Consultant Architect, BEA Systems Ltd