[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #57583] [PATCH] s.tmac: Test the default number for warnings for nr
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #57583] [PATCH] s.tmac: Test the default number for warnings for nroff |
Date: |
Sun, 12 Jan 2020 03:11:19 -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/?57583>
Summary: [PATCH] s.tmac: Test the default number for warnings
for nroff
Project: GNU troff
Submitted by: bjarniig
Submitted on: Sun 12 Jan 2020 08:11:17 AM UTC
Category: Macro - ms
Severity: 3 - Normal
Item Group: Incorrect behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
>From 0c68c9ac087102d8622e756cf75c788f4b80d327 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Sun, 12 Jan 2020 07:39:47 +0000
Subject: [PATCH] s.tmac: Test the default number for warnings for nroff
Add the default number for warnings in the file "groff/tmac/s.tmac"
(ms macros) in a test for nroff.
Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
tmac/s.tmac | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/tmac/s.tmac b/tmac/s.tmac
index 5737dfd3..08f18cf2 100644
--- a/tmac/s.tmac
+++ b/tmac/s.tmac
@@ -23,9 +23,19 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>.
.if !\n(.g .ab These ms macros require groff.
.if \n(.C \
. ab The groff ms macros do not work in compatibility mode.
+.
.\" Enable warnings (only if none are given on the command line).
.\" You can delete this if you want.
-.if (\n[.warn] == 1245191) .warn
+.\" All warnings sum to 2,097,151.
+.\" The numbers are for the default warnings.
+.ie n \{\
+. \" No warning about missing fonts
+. if (\n[.warn] == 1114119) .warn
+.\}
+.el \{\
+. if (\n[.warn] == 1245191) .warn
+.\}
+.
.\" See if already loaded.
.if r GS .nx
.mso devtag.tmac
--
2.24.1
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57583>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #57583] [PATCH] s.tmac: Test the default number for warnings for nroff,
Bjarni Ingi Gislason <=