bug-groff
[Top][All Lists]
Advanced

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

[bug #55044] [PATCH] contrib/hdtbl/hdmisc.tmac-u: register 'M#' must be


From: Bjarni Ingi Gislason
Subject: [bug #55044] [PATCH] contrib/hdtbl/hdmisc.tmac-u: register 'M#' must be reset to 0 at the start of a new page
Date: Sun, 18 Nov 2018 14:08:05 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

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 <address@hidden>
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 <address@hidden>

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/




reply via email to

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