Update of bug #64639 (project groff):
Status: None => Confirmed
Assigned to: None => PTPi
Summary: [mom] bug #64421 is a mom-bug => [mom] odd output
with #64421 reproducer
_______________________________________________________
Follow-up Comment #2:
This LTO stuff is no longer relevant; I've pushed a fix for that.
The issue with the input in comment #1 appears to be that _mom_ assumes that a
color named "default" exists (for me, it certainly defines a string _named_
`default` with the _contents_ `default`).
Whether this is a deliberate aspect of its design, I am not sure.
What puzzles me more is the `COLOR` macro itself.
The following patch seems to make it do what it is documented to do.
diff --git a/contrib/mom/om.tmac b/contrib/mom/om.tmac
index b0fd1ef55..039bcfe48 100644
--- a/contrib/mom/om.tmac
+++ b/contrib/mom/om.tmac
@@ -1873,9 +1873,9 @@ end
.MAC COLOR END
. ie \\n[.u]=1 \{\
\c
-\\*[\\$1]\c
+\m[\\*[\\$1]]\c
. \}
-. el \\*[\\$1]
+. el \m[\\*[\\$1]]
.END
\#
\# NEWCOLOR
But I didn't check all of `COLOR`'s call sites, so I'm not sure this is a
kosher fix.
Assigning to Peter for evaluation.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64639>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/