bug-groff
[Top][All Lists]
Advanced

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

[bug #62773] [man] warn if `TH` macro not called


From: G. Branden Robinson
Subject: [bug #62773] [man] warn if `TH` macro not called
Date: Tue, 23 Aug 2022 17:40:09 -0400 (EDT)

Update of bug #62773 (project groff):

                  Status:                    None => Invalid                
             Assigned to:                    None => gbranden               
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:


[comment #0 original submission:]
> ...and try to degrade gracefully.
> 
> groff 1.22.4 trucked along just fine if `TH` was omitted, even though this
is expressly out of spec.

Turns out this was a filthy lie.  I forgot that _an.tmac_ in groff 1.22.4 was
a wrapper for _andoc.tmac_.

Here's what REALLY happens.


$ groff -ww -Tutf8 -man-old ./EXPERIMENTS/no-TH.man 
troff: ./EXPERIMENTS/no-TH.man:1: warning: number register 'PD' not defined
troff: ./EXPERIMENTS/no-TH.man:1: warning: number register 'PS' not defined
troff: ./EXPERIMENTS/no-TH.man:1: warning: number register 'VS' not defined
troff: ./EXPERIMENTS/no-TH.man:1: warning: number register 'an-margin' not
defined
troff: ./EXPERIMENTS/no-TH.man:1: warning: number register 'IN' not defined
troff: ./EXPERIMENTS/no-TH.man:3: warning: number register 'PS-SH' not
defined
troff: ./EXPERIMENTS/no-TH.man:3: warning: number register 'an-div?' not
defined
troff: warning: macro 'an-title' not defined
troff: warning: macro 'an-section' not defined
Bar.ription                                                                
()


So this is no regression and not a big deal for 1.23.0.  However, we might
look into clearing an-extra[123] in the end-of-input trap.  See bug #62447 for
a similar mdoc issue.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62773>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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