Update of bug #67783 (group groff):

                 Summary: [troff] enable warnings in categories "escape" and
"syntax" by default => [PATCH] [troff] enable warnings in categories "escape",
and "syntax" by default

    _______________________________________________________

Follow-up Comment #4:

Also see bug #66009.


diff --git a/NEWS b/NEWS
index 2a3760f0c..ba2d899a3 100644
--- a/NEWS
+++ b/NEWS
@@ -15,8 +15,8 @@ VERSION next
 troff
 -----
 
-*  GNU troff, the formatter, now issues warnings in the "delim" category
-   by default.
+*  GNU troff, the formatter, now issues warnings in the "delim" and
+   "syntax" categories by default.
 
 
 VERSION 1.24.0
diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index bcfc94093..82e76c46c 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -21548,6 +21548,7 @@
 extension escape sequence
 or conditional expression operator
 was used while in compatibility mode.
+This category is enabled by default.
 
 @item di
 @itemx 256
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 73c0a8ee3..951859d1e 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -73,7 +73,8 @@ along with this program.  If not, see
<http://www.gnu.org/licenses/>. */
 #ifndef DEFAULT_WARNING_CATEGORY_SET
 // warnings that are enabled by default
 #define DEFAULT_WARNING_CATEGORY_SET \
-     (WARN_CHAR|WARN_BREAK|WARN_DELIM|WARN_SPACE|WARN_FONT|WARN_FILE)
+     (WARN_CHAR|WARN_BREAK|WARN_DELIM|WARN_SYNTAX|WARN_SPACE|WARN_FONT\
+      |WARN_FILE)
 #endif
 
 extern "C" const char *program_name;
diff --git a/src/roff/troff/troff.1.man b/src/roff/troff/troff.1.man
index 73b7be9b4..08bee1672 100644
--- a/src/roff/troff/troff.1.man
+++ b/src/roff/troff/troff.1.man
@@ -833,6 +833,8 @@ .SH Warnings
 extension escape sequence
 or conditional expression operator
 was used while in compatibility mode.
+.
+This category is enabled by default.
 T}
 .
 .



diff --git a/NEWS b/NEWS
index ba2d899a3..1be02fc87 100644
--- a/NEWS
+++ b/NEWS
@@ -15,8 +15,8 @@ VERSION next
 troff
 -----
 
-*  GNU troff, the formatter, now issues warnings in the "delim" and
-   "syntax" categories by default.
+*  GNU troff, the formatter, now issues warnings in the "delim",
+   "syntax", and "escape" categories by default.
 
 
 VERSION 1.24.0
diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index 82e76c46c..6b9bd16e5 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -21630,6 +21630,7 @@
 @item escape
 @itemx 32768
 An unsupported escape sequence was encountered.
+This category is enabled by default.
 
 @item space
 @itemx 65536
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 951859d1e..1594a80fa 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -73,8 +73,8 @@ along with this program.  If not, see
<http://www.gnu.org/licenses/>. */
 #ifndef DEFAULT_WARNING_CATEGORY_SET
 // warnings that are enabled by default
 #define DEFAULT_WARNING_CATEGORY_SET \
-     (WARN_CHAR|WARN_BREAK|WARN_DELIM|WARN_SYNTAX|WARN_SPACE|WARN_FONT\
-      |WARN_FILE)
+     (WARN_CHAR|WARN_BREAK|WARN_DELIM|WARN_SYNTAX|WARN_ESCAPE\
+      |WARN_SPACE|WARN_FONT|WARN_FILE)
 #endif
 
 extern "C" const char *program_name;
diff --git a/src/roff/troff/troff.1.man b/src/roff/troff/troff.1.man
index 08bee1672..eddadf32e 100644
--- a/src/roff/troff/troff.1.man
+++ b/src/roff/troff/troff.1.man
@@ -682,6 +682,8 @@ .SH Warnings
 .sp \n[PD]u
 escape 32768   T{
 An unsupported escape sequence was encountered.
+.
+This category is enabled by default.
 T}
 .
 .




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67783>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to