URL:
<https://savannah.gnu.org/bugs/?67889>
Summary: [mm] LT macro could set @cover to \\$0
Group: GNU roff
Submitter: afh
Submitted: Mon 05 Jan 2026 10:58:34 PM UTC
Category: Macro package mm
Severity: 3 - Normal
Item Group: Rendering/Cosmetics
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Unlocked
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 05 Jan 2026 10:58:34 PM UTC By: Alexis <afh>
While reading through m.tmac I noticed that the @cover string is usually set
to \\$0 except within the LT macro where it is hardcoded to LT:
grep -B2 'ds @cover' contrib/mm/m.tmac | sed 's/cover LT/&\t\t\\" <== HERE/'
.de TL
\\*[debug@dump-args]\\
.ds @cover \\$0
--
.\"------------
.de MT
.ds @cover \\$0
--
..
.de COVER
.ds @cover \\$0
--
.de LT
\\*[debug@dump-args]\\
.ds @cover LT \" <== HERE
--
.de LO
\\*[debug@dump-args]\\
.ds @cover \\$0
It seems to me that the LT macro could just as well set @cover to \\$0, yet
there may be something I'm missing, where this change would break existing
functionality. If folks more familiar with mm can rule out potential unwanted
side-effects, the necessary change could be made using:
sed -i -e 's/cover LT/cover \\\\$0/' contrib/mm/m.tmac
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67889>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/