[Top][All Lists]
[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
- Re: [Groff] Toward a convention for namespaces, (continued)
- Re: [Groff] Toward a convention for namespaces, Werner LEMBERG, 2010/02/08
- Re: [Groff] Another hdtbl patch, Werner LEMBERG, 2010/02/03
- Re: [Groff] Another hdtbl patch, Robert Thorsby, 2010/02/03
- Re: [Groff] Another hdtbl patch, Mike Bianchi, 2010/02/03
- Re: [Groff] Another hdtbl patch, Werner LEMBERG, 2010/02/04
- Re: [Groff] Another hdtbl patch, Ralph Corderoy, 2010/02/05
- [Groff] names in groff -- was: Another hdtbl patch, Mike Bianchi, 2010/02/05
- Re: [Groff] names in groff -- was: Another hdtbl patch, walter harms, 2010/02/05
- Re: [Groff] names in groff -- was: Another hdtbl patch, Werner LEMBERG, 2010/02/08
- Re: [Groff] Another hdtbl patch, Tadziu Hoffmann, 2010/02/04
- Re: [Groff] Another hdtbl patch,
Robert Thorsby <=
- Re: [Groff] Another hdtbl patch, Tadziu Hoffmann, 2010/02/04