groff-commit
[Top][All Lists]
Advanced

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

[groff] 20/33: [mm]: Eliminate spew at high debug levels.


From: G. Branden Robinson
Subject: [groff] 20/33: [mm]: Eliminate spew at high debug levels.
Date: Sun, 29 Jan 2023 19:35:30 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit ab79e7eaa987f49a8148f672963016ceff03f1fd
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Jan 24 02:30:25 2023 -0600

    [mm]: Eliminate spew at high debug levels.
    
    * contrib/mm/m.tmac (df@print-float): Eliminate spew at high debug
      levels.  This macro gets called even when there aren't any floating
      displays pending, so we cannot assume that related registers are
      defined.
---
 contrib/mm/ChangeLog | 7 +++++++
 contrib/mm/m.tmac    | 7 ++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 38fa5a794..e515eb600 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,10 @@
+2023-01-24  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * m.tmac (df@print-float): Eliminate spew at high debug levels.
+       This macro gets called even when there aren't any floating
+       displays pending, so we cannot assume that related registers are
+       defined.
+
 2023-01-24  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * m.tmac (P): Fix missing backslash after brace escape sequence.
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 1ade51665..42eaf349c 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -2012,7 +2012,12 @@ within DF/DE
 .if !\\n[ds*float-busy] \{\
 .      nr ds*float-busy 1
 .\" at .DE
-.      if \\n[D]>3 .tm print-float: .t=\\n[.t], h=\\n[df*height!\\n[df*o-fnr]]
+.      if \\n[D]>3 \{\
+.              tmc print-float: .t=\\n[.t]
+.              if r df*height!\\n[df*o-fnr] \
+.                      tmc , h=\\n[df*height!\\n[df*o-fnr]]
+.              tm
+.      \}
 .      \" Df = 1 or 5
 .      if (\\$1=1)&((\\n[Df]=1):(\\n[Df]=5)) \{\
 .              if \\n[.t]>\\n[df*height!\\n[df*o-fnr]] \{\



reply via email to

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