Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.groff.bug > #1613

[bug #57583] [PATCH] s.tmac: Test the default number for warnings for nroff

Path csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Bjarni Ingi Gislason <INVALID.NOREPLY@gnu.org>
Newsgroups gnu.groff.bug
Subject [bug #57583] [PATCH] s.tmac: Test the default number for warnings for nroff
Date Sun, 12 Jan 2020 03:11:19 -0500 (EST)
Lines 81
Approved bug-groff@gnu.org
Message-ID <mailman.2439.1578816686.1979.bug-groff@gnu.org> (permalink)
References <20200112-081117.sv93188.50403@savannah.gnu.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain;charset=UTF-8
X-Trace usenet.stanford.edu 1578816687 25459 209.51.188.17 (12 Jan 2020 08:11:27 GMT)
X-Complaints-To action@cs.stanford.edu
To Bjarni Ingi Gislason <bjarniig@rhi.hi.is>, bug-groff@gnu.org
Envelope-to bug-groff@gnu.org
X-PHP-Originating-Script 1001:sendmail.php
X-Savane-Server savannah.gnu.org:443 [209.51.188.79]
X-Savane-Project groff
X-Savane-Tracker bugs
X-Savane-Item-ID 57583
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
X-Apparently-From 31.209.211.187 (Savane authenticated user bjarniig)
In-Reply-To
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 209.51.188.79
X-BeenThere bug-groff@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id "Bug reports for the GNU version of nroff, troff et al" <bug-groff.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-groff>
List-Post <mailto:bug-groff@gnu.org>
List-Help <mailto:bug-groff-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200112-081117.sv93188.50403@savannah.gnu.org>
Xref csiph.com gnu.groff.bug:1613

Show key headers only | View raw


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 gnu.groff.bug | Previous | Next | Find similar | Unroll thread


Thread

[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

csiph-web