[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: buglet in mom 2.5d
From: |
Peter Schaffter |
Subject: |
Re: buglet in mom 2.5d |
Date: |
Thu, 15 Jun 2023 18:35:13 -0400 |
On Thu, Jun 15, 2023, G. Branden Robinson wrote:
> There appears to be a nit in mom 2.5d.
>
> When building, I got the following error:
>
> troff:../contrib/mom/examples/typesetting.mom:316: error: empty escape name
> troff: backtrace: '../contrib/mom/om.tmac':1878: macro 'COLOR'
> troff: backtrace: '../contrib/mom/om.tmac':3058: macro 'DBX'
> troff: backtrace: file '../contrib/mom/examples/typesetting.mom':316
> troff:../contrib/mom/examples/typesetting.mom:316: error: empty escape name
>
> .MAC COLOR END
> . ie \\n[.u]=1 \{\
> \c
> \\*[\\$1]\c
> . \}
> . el \\*[\\$1]
> .END
>
> It looks like `MAC` needs to be prepared for the possibility of being
> passed no arguments...
> ...or `DBX` needs to ensure that it doesn't call `COLOR` with an empty
> string.
The latter. It affects all the graphical object macros. I've
pushed the fix. 'typesetting.mom' should now build without error.
--
Peter Schaffter
https://www.schaffter.ca