groff-commit
[Top][All Lists]
Advanced

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

[groff] 03/25: tmac/pdf.tmac: Identify self in diagnostics.


From: G. Branden Robinson
Subject: [groff] 03/25: tmac/pdf.tmac: Identify self in diagnostics.
Date: Wed, 2 Mar 2022 05:12:05 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 1f7b8bf097cb5cf8327c7d6f083e8f2195cf0b2d
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Feb 23 01:51:35 2022 +1100

    tmac/pdf.tmac: Identify self in diagnostics.
    
    * tmac/pdf.tmac: Add string containing the name of the macro package for
      use in diagnostic messages.
    
      (pdf:warn, pdf:error): Use it.
    
    Continues the long process of fixing Savannah #52463.
---
 ChangeLog     | 8 ++++++++
 tmac/pdf.tmac | 7 +++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7548d837..6417f7f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2022-02-23  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/pdf.tmac: Add string containing the name of the macro
+       package for use in diagnostic messages.
+       (pdf:warn, pdf:error): Use it.
+
+       Continues the long process of fixing Savannah #52463.
+
 2022-02-23  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [man,mdoc,me]: Revise hyphenation localization.
diff --git a/tmac/pdf.tmac b/tmac/pdf.tmac
index c376d2f8..ea58bf42 100644
--- a/tmac/pdf.tmac
+++ b/tmac/pdf.tmac
@@ -69,11 +69,14 @@ am solely responsible for any bugs I may have introduced 
into this file.
 .de pdfmark
 . nop \!x X ps:exec [\\$* pdfmark
 ..
+.
+.ds pdf pdf.tmac\" for use in diagnostic messages
+.
 .de pdf:warn
-. tm \\n(.F:\\n(.c: macro warning: \\$*
+. tm \\*[pdf]:\\n[.F]:\\n[.c]: warning: \\$*
 ..
 .de pdf:error
-. tm \\n(.F:\\n(.c: macro error: \\$*
+. tm \\*[pdf]:\\n[.F]:\\n[.c]: error: \\$*
 ..
 .de pdfinfo
 .\" -------------------------------------------------------------------



reply via email to

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