gbranden pushed a commit to branch master
in repository groff.

commit fff638336720e0cd0e80d7d6b0d0c702856ff4da
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 23 19:07:53 2025 -0600

    [troff]: Revise `\w` delimiter warning text.
    
    * src/roff/troff/input.cpp (do_width): Revise text of warnings in
      category "delim" thrown when an inauspicious delimiter is selected
      outside of compatibility mode.
---
 ChangeLog                | 1 +
 src/roff/troff/input.cpp | 5 ++---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 80dd5fc0b..71fdbbad5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2025-11-23  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp
+       (do_width)
        (read_size):
        Revise text of warnings in category "delim" thrown when an
        inauspicious delimiter is selected outside of compatibility
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 2da0c0173..966ae4bd0 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -6243,9 +6243,8 @@ static void do_width() // \w
   token start_token;
   start_token.next();
   if (!want_att_compat && !start_token.is_usable_as_delimiter())
-    warning(WARN_DELIM, "interpreting %1 as an escape sequence"
-           " delimiter; it is ambiguous because it is also meaningful"
-           " in a numeric expression", start_token.description());
+    warning(WARN_DELIM, "using %1 as an escape sequence delimiter"
+                       " is deprecated", start_token.description());
   else if (want_att_compat
            && !start_token.is_usable_as_delimiter(false,
                  DELIMITER_ATT_STRING_EXPRESSION)) {

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

Reply via email to