Follow-up Comment #2, bug #55044 (project groff):

  I first defined "M#" in the macro "HM" (head... macro) as I assumed
that this macro would be processed first (before the other choice,
"t*SP"):


commit 4b4998eb759c215bcf9a1c474f608b3add840337
Author: Bjarni Ingi Gislason <[email protected]>
Date:   Fri Nov 16 00:58:40 2018 +0000

    contrib/examples/common.roff: define register M#
    
      The register "M#" is undefined when first used.
    
      Define it in the macro HM (header macro).
    
    Signed-off-by: Bjarni Ingi Gislason <[email protected]>

diff --git a/contrib/hdtbl/examples/common.roff
b/contrib/hdtbl/examples/common.roff
index b40a9d16..e26a78f5 100644
--- a/contrib/hdtbl/examples/common.roff
+++ b/contrib/hdtbl/examples/common.roff
@@ -257,9 +257,10 @@ along with this program.  If not, see
<http://www.gnu.org/licenses/>.
 .
 .
 .de HM
-.  sp |.5i                             \"      print header in top margin
+.  sp |.5i                     \"      print header in top margin
 .  tl \\*[t*HM]
 .  sp |\\n[tH]u
+.  nr M# 0                     \"      used in hdmisc.tmac, macro t*SP (SP)
 .  ev
 ..
 .

###

  As there was no change in the use of the undefined variable I tried
the patch for "t*SP, which worked.

  I was ONLY assessing the use of the undefined variable "M#",
nothing else as the original subject tells.



    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
bug-groff mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-groff

Reply via email to