gbranden pushed a commit to branch master
in repository groff.

commit 7d7b92d0ea627964e094e3890c6fe014d5c51040
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 23 19:06:13 2025 -0600

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

diff --git a/ChangeLog b/ChangeLog
index 0f7a090e0..80dd5fc0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-11-23  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp
+       (read_size):
+       Revise text of warnings in category "delim" thrown when an
+       inauspicious delimiter is selected outside of compatibility
+       mode.
+
 2025-11-23  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (assign_control_character)
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index dfe60b3cd..2da0c0173 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -6053,9 +6053,8 @@ static bool read_size(int *x) // \s
     val *= sizescale;
   }
   else if (!want_att_compat && !tok.is_usable_as_delimiter())
-    warning(WARN_DELIM, "interpreting %1 as an escape sequence"
-           " delimiter; it is ambiguous because it can also begin a"
-           " numeric expression", tok.description());
+    warning(WARN_DELIM, "using %1 as an escape sequence delimiter"
+                       " is deprecated", tok.description());
   else if (want_att_compat
            && !tok.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