bug-groff
[Top][All Lists]
Advanced

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

[bug #57592] [PATCH] tmac/<files containing a ".nx" request>: Add a warn


From: Bjarni Ingi Gislason
Subject: [bug #57592] [PATCH] tmac/<files containing a ".nx" request>: Add a warning
Date: Mon, 13 Jan 2020 13:36:57 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

URL:
  <https://savannah.gnu.org/bugs/?57592>

                 Summary: [PATCH] tmac/<files containing a ".nx" request>: Add
a warning
                 Project: GNU troff
            Submitted by: bjarniig
            Submitted on: Mon 13 Jan 2020 06:36:55 PM UTC
                Category: Macro - others
                Severity: 3 - Normal
              Item Group: New feature
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:


>From b42eb50920646823ea06c423da73510c708a23c1 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Mon, 13 Jan 2020 18:10:39 +0000
To: address@hidden
Subject: [PATCH] tmac/<files containing a ".nx" request>: Add a warning

  Some macro files have an '.nx' request
to avoid to have all of it read a second time.

  Add a warning to point out this unwanted situation.

  Two files, "pdfpic.tmac" and "pspic.tmac",
are automatically read,
as they are used in the file "tmac/troffrc".

Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
 tmac/an-old.tmac | 5 ++++-
 tmac/devtag.tmac | 5 ++++-
 tmac/doc.tmac-u  | 5 ++++-
 tmac/e.tmac-u    | 5 ++++-
 tmac/pdfpic.tmac | 6 +++++-
 tmac/pspic.tmac  | 6 +++++-
 tmac/s.tmac      | 5 ++++-
 tmac/www.tmac.in | 5 ++++-
 8 files changed, 34 insertions(+), 8 deletions(-)

diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index ba360013..171d2814 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -37,7 +37,10 @@
 .
 .if !\n(.g .ab These man macros work only with groff.
 .
-.do if d RI .nx
+.do if d RI \{\
+.  tm \n[.F]: warning: The macro file is read again.
+.  nx
+.\}
 .
 .do mso devtag.tmac
 .
diff --git a/tmac/devtag.tmac b/tmac/devtag.tmac
index 80a5dde2..f691f733 100644
--- a/tmac/devtag.tmac
+++ b/tmac/devtag.tmac
@@ -43,7 +43,10 @@ called directly from within www.tmac.  The tags defined
here are
 reasonably generic and could be applied to other devices.
 ..
 .
-.do if d DEVTAG-NH .nx
+.do if d DEVTAG-NH \{\
+.  tm \n[.F]: warning: The macro file is read again
+.  nx
+.\}
 .
 .nr _C \n(.C
 .cp 0
diff --git a/tmac/doc.tmac-u b/tmac/doc.tmac-u
index a8b66283..df5680bc 100644
--- a/tmac/doc.tmac-u
+++ b/tmac/doc.tmac-u
@@ -51,7 +51,10 @@
 .  ab This version of mdoc can be run with GNU troff only!
 .
 .
-.do if d Dd .nx
+.do if d Dd \{\
+.  tm \n[.F]: warning: The macro file is read again
+.  nx
+.\}
 .
 .
 .cp 0
diff --git a/tmac/e.tmac-u b/tmac/e.tmac-u
index 572fba8b..d5e8b160 100644
--- a/tmac/e.tmac-u
+++ b/tmac/e.tmac-u
@@ -78,7 +78,10 @@
 .      do als check_need_title @check_need_title
 .
 .@R pf
-.if \n(pf .nx
+.if \n(pf \{\
+.  tm \n[.F]: warning: The macro file is read again
+.  nx
+.\}
 .
 .if !\n(.g .ig
 .de @S         \" --- initialize string/macro to empty, if undefined
diff --git a/tmac/pdfpic.tmac b/tmac/pdfpic.tmac
index fd2b9f3c..726a5920 100644
--- a/tmac/pdfpic.tmac
+++ b/tmac/pdfpic.tmac
@@ -12,7 +12,11 @@
 .\" Requires the poppler-utils package (for pdfinfo and pdftops).
 .\" Requires running groff in unsafe mode.
 .
-.do if d PDFPIC .nx
+.do if d PDFPIC \{\
+.\" This file is first read in "tmac/troffrc"
+.  tm \n[.F]: warning: The macro file is read again
+.  nx
+.\}
 .
 .nr _C \n(.C
 .cp 0
diff --git a/tmac/pspic.tmac b/tmac/pspic.tmac
index 948754f4..5082c465 100644
--- a/tmac/pspic.tmac
+++ b/tmac/pspic.tmac
@@ -9,7 +9,11 @@
 .\"
 .\"   .PSPIC [-L|-R|-C|-I <indent>] <file> [<width> [<height>]]
 .
-.do if d PSPIC .nx
+.do if d PSPIC \{\
+.\" This file is first read in "tmac/troffrc"
+.  tm \n[.F]: warning: The macro file is read again.
+.  nx
+.\}
 .
 .nr _C \n(.C
 .cp 0
diff --git a/tmac/s.tmac b/tmac/s.tmac
index 08f18cf2..e18ff0a5 100644
--- a/tmac/s.tmac
+++ b/tmac/s.tmac
@@ -37,7 +37,10 @@ along with this program.  If not, see
<http://www.gnu.org/licenses/>.
 .\}
 .
 .\" See if already loaded.
-.if r GS .nx
+.if r GS \{\
+.  tm \n[.F]: warning: The macro file is read again
+.  nx
+.\}
 .mso devtag.tmac
 .nr GS 1
 .nr need_eo_h 0
diff --git a/tmac/www.tmac.in b/tmac/www.tmac.in
index c3a2928e..2d807d8d 100644
--- a/tmac/www.tmac.in
+++ b/tmac/www.tmac.in
@@ -44,7 +44,10 @@ following, HTML always denotes XHTML also.
 .\" Setup
 .\" --------------------------------------------------------------------
 .
-.do if d www:lenstr .nx
+.do if d www:lenstr \{\
+.  tm \n[.F]: warning: The macro file is read again
+.  nx
+.\}
 .
 .do mso devtag.tmac
 .
-- 
2.24.1






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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