groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Another hdtbl patch


From: Robert Thorsby
Subject: Re: [Groff] Another hdtbl patch
Date: Thu, 04 Feb 2010 20:34:37 +1100

On 04/02/10 20:16:48, Tadziu Hoffmann wrote:
> > [...] but live in fear that I have accidentally overridden
> > some tremendously important macro in a package that I am
> > about to use.
> 
> You can guard yourself against accidentally overwriting
> existing macros by building a wrapper around "de" which
> tests whether the name to be defined already exists:
> 
>   .rn de de!
>   .de! de
>   .ie d\\$1 .ab Will not redefine existing "\\$1".  Aborting...
>   .el .de! \\$*
>   ..

Very neat. Thank you.

Of course, that is a pretty drastic solution -- definitely a case of 
throwing the baby out with the bath water. :-)

Robert
The reward of suffering is experience. -- Aeschylus





reply via email to

[Prev in Thread] Current Thread [Next in Thread]