summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--contrib/mm/m.tmac6
-rw-r--r--src/roff/troff/troff.man1
-rw-r--r--tmac/s.tmac5
4 files changed, 14 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index c86c1c7b..3cd7a397 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-09-05 Werner LEMBERG <wl@gnu.org>
+
+ * src/roff/troff/troff.man: Remove superfluous line.
+
+ * tmac/s.tmac, contrib/mm/m.tmac: Enable all warnings only if no -W
+ or -w option is given on the command line (or rather, if only the
+ default warnings are set).
+
2001-09-03 Werner LEMBERG <wl@gnu.org>
* contrib/mm/groff_mm.man, man/groff.man, src/preproc/eqn/eqn.man,
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index e23e54b8..129d9e63 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3,8 +3,8 @@
.ds RE \\$2
..
.\"
-.\" $Id: m.tmac,v 2.5 2001/07/26 05:07:35 wlemb Exp $
-.@revision $Revision: 2.5 $
+.\" $Id: m.tmac,v 2.6 2001/09/05 17:45:49 wlemb Exp $
+.@revision $Revision: 2.6 $
.ig
Copyright (C) 1991-2000 Free Software Foundation, Inc.
@@ -34,7 +34,7 @@ Index array!index
..
.if !\n(.g .ab These mm macros require groff.
.if \n(.C .ab The groff mm macros do not work in compatibility mode.
-.warn
+.if (\n[.warn] == 65543) .warn
.\" ######## init #######
.\" Contents level [0:7], contents saved if heading level <= Cl
.nr Cl 2
diff --git a/src/roff/troff/troff.man b/src/roff/troff/troff.man
index 27e47dca..fc663153 100644
--- a/src/roff/troff/troff.man
+++ b/src/roff/troff/troff.man
@@ -2216,7 +2216,6 @@ each name.
Use of undefined number registers.
When an undefined number register is used,
that register is automatically defined to have a value of 0.
-a definition is automatically made with a value of 0.
So, in most cases, at most one warning will be given for
use of a particular name.
.TP
diff --git a/tmac/s.tmac b/tmac/s.tmac
index 91762a99..a73e5ccc 100644
--- a/tmac/s.tmac
+++ b/tmac/s.tmac
@@ -25,8 +25,9 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
.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. You can delete this if you want.
-.warn
+.\" Enable warnings (only if none are given on the command line).
+.\" You can delete this if you want.
+.if (\n[.warn] == 65543) .warn
.\" See if already loaded.
.if r GS .nx
.nr GS 1