gbranden pushed a commit to branch master
in repository groff.

commit 0e9da72bca0a9080feae7f6f41954e8586b205a1
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Mar 6 18:26:46 2026 -0600

    [troff]: Enable "delim" warnings by default.
    
    * src/roff/troff/input.cpp: Add `WARN_DELIM` to default warning "mask".
      (It's not a mask, just a vector--or a set.)
    
    * doc/groff.texi (Warnings):
    * src/roff/troff/troff.1.man (Warnings):
    * NEWS: Document it.
    
    Continues the long process of fixing Savannah #66009.
---
 ChangeLog                  | 11 +++++++++++
 NEWS                       | 10 ++++++++++
 doc/groff.texi.in          |  1 +
 src/roff/troff/input.cpp   |  2 +-
 src/roff/troff/troff.1.man |  2 ++
 5 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index bad0fbdd3..833851515 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2026-03-06  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp: Add `WARN_DELIM` to default warning
+       "mask".  (It's not a mask, just a vector--or a set.)
+
+       * doc/groff.texi (Warnings):
+       * src/roff/troff/troff.1.man (Warnings):
+       * NEWS: Document it.
+
+       Continues the long process of fixing Savannah #66009.
+
 2026-03-10  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (do_device_extension): Emit error
diff --git a/NEWS b/NEWS
index 15a2af1f9..1f89a82a8 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,16 @@
 This file describes recent user-visible changes in groff.  Bug fixes are
 not described.  There are more details in the man and info pages.
 
+VERSION next
+============
+
+troff
+-----
+
+*  GNU troff, the formatter, now issues warnings in the "delim" category
+   by default.
+
+
 VERSION 1.24.1
 ==============
 
diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index 2bfe023b8..938c3208b 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -21506,6 +21506,7 @@ The selected delimiter character was ambiguous
 because it is also meaningful when beginning a numeric expression,
 or
 the closing delimiter in an escape sequence was missing or mismatched.
+This category is enabled by default.
 
 A future
 @code{groff}
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 48d727517..73c0a8ee3 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -73,7 +73,7 @@ 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_SPACE|WARN_FONT|WARN_FILE)
+     (WARN_CHAR|WARN_BREAK|WARN_DELIM|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 6f4c24979..73b7be9b4 100644
--- a/src/roff/troff/troff.1.man
+++ b/src/roff/troff/troff.1.man
@@ -644,6 +644,8 @@ because it is also meaningful when beginning a numeric 
expression,
 or
 the closing delimiter in an escape sequence was missing or mismatched.
 .
+This category is enabled by default.
+.
 .
 .sp \n[PD]u
 A future

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to