On Tue, Aug 27, 2013, Tadziu Hoffmann wrote:
> Otherwise, how would you do it?  Well, the section macro could
> perhaps query register "nl" (vertical position of last printed
> text base-line), but that may be a bit chancy (depending on,
> for example, whether you output or not a page header on that
> page).  Or the new-page macro could set a flag to indicate
> that a new page has just been started, and that flag could be
> queried by the section macros.  However, you would then also
> need a mechanism to automatically reset the flag once text
> has been output.  This could be achieved by setting a trap
> at the top which is sprung once text is actually printed.
> (And it appears mom is trying to do exactly that.)

Indeed, this is what mom's @TOP register is for, with a trap to
reset the flag.

-- 
Peter Schaffter
http://www.schaffter.ca

Reply via email to