[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64639] [mom] odd output with #64421 reproducer
From: |
G. Branden Robinson |
Subject: |
[bug #64639] [mom] odd output with #64421 reproducer |
Date: |
Sun, 10 Sep 2023 15:38:43 -0400 (EDT) |
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/
- [bug #64639] [mom] bug #64421 is a mom-bug, Bjarni Ingi Gislason, 2023/09/08
- [bug #64639] [mom] bug #64421 is a mom-bug, Bjarni Ingi Gislason, 2023/09/08
- [bug #64639] [mom] odd output with #64421 reproducer,
G. Branden Robinson <=
- [bug #64639] [mom] odd output with #64421 reproducer, Peter Schaffter, 2023/09/10
- [bug #64639] [mom] odd output with #64421 reproducer, G. Branden Robinson, 2023/09/10
- [bug #64639] [mom] odd output with #64421 reproducer, Peter Schaffter, 2023/09/11
- [bug #64639] [mom] odd output with #64421 reproducer, G. Branden Robinson, 2023/09/11
- [bug #64639] [mom] odd output with #64421 reproducer, G. Branden Robinson, 2023/09/16