Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.groff.bug > #1613 > unrolled thread
| Started by | Bjarni Ingi Gislason <INVALID.NOREPLY@gnu.org> |
|---|---|
| First post | 2020-01-12 03:11 -0500 |
| Last post | 2020-01-12 03:11 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.groff.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[bug #57583] [PATCH] s.tmac: Test the default number for warnings for nroff Bjarni Ingi Gislason <INVALID.NOREPLY@gnu.org> - 2020-01-12 03:11 -0500
| From | Bjarni Ingi Gislason <INVALID.NOREPLY@gnu.org> |
|---|---|
| Date | 2020-01-12 03:11 -0500 |
| Subject | [bug #57583] [PATCH] s.tmac: Test the default number for warnings for nroff |
| Message-ID | <mailman.2439.1578816686.1979.bug-groff@gnu.org> |
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 <bjarniig@rhi.hi.is>
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 <bjarniig@rhi.hi.is>
---
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/
Back to top | Article view | gnu.groff.bug
csiph-web