Finally I got a `problems' file. The suicidal trap seems to work like this:

a) you append a `.rn wh_saved wh' to the macro to be sprung on reaching a certain height

b) you rename the wh macro: `.rn wh wh_saved'

c) you set-up the trap with wh_saved that will sprung a macro that does something plus restores wh

It seems that yes, wh_saved can invoke the macro in question, but it seems that saving/restoring wh
does not eliminate the trap, .ptr still shows it.

Have I missed something?

Btw, wouldn't it be less work to introduce a kamikaze trap into groff than working with
such constructs at document level many times over?
What do you think?

Miklos



On 28/07/2006, at 9:54 PM, Werner LEMBERG wrote:


So my question is: is there a suicidal trap that kills itself
after it is sprung or on entering a new page, or would it be
difficult to make one?

Look into the PROBLEMS file; the very first item contains a sample
with a self-removing trap.


    Werner




_______________________________________________
Groff mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/groff

Reply via email to