groff
[Top][All Lists]
Advanced

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

Re: Groff examples repository


From: Keith Marshall
Subject: Re: Groff examples repository
Date: Sun, 29 Aug 2021 10:44:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 28/08/2021 17:14, Douglas McIlroy wrote:
> A small anomaly. Consider
> 
>     .de .
>     .tm Hi
>     ,..
>     ..

I'm guessing that the comma, before the first ".." is an unintended
introduction?

> The second .. emits "Hi". This fragment also emits "Hi":
> 
>     .de end end
>     .tm Hi
>     .end
> 
> But this (with macro . not previously defined)
> does not:
> 
>     .de . .
>     .tm Hi
>     ..

Even if macro "." were previously defined, the latter should not emit
"Hi".  Footnote 16, in reference to ".de" and its variations, within the
groff reference manual[1], explains this, (with an essentially similar
example): during a macro definition, '..' is never handled as a call to
'.', even if you say '.de foo .' explicitly.

[1]: https://www.gnu.org/software/groff/manual/groff.pdf

(FWIW, I think I would have s/handled/interpreted/)

-- 
Cheers, Keith



reply via email to

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