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

                 Summary: [troff] enable warnings in category "syntax" by
default
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Sun 07 Dec 2025 02:28:05 PM UTC
                Category: Core
                Severity: 1 - Wish
              Item Group: Feature change
                  Status: Postponed
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 07 Dec 2025 02:28:05 PM UTC By: G. Branden Robinson <gbranden>
I desire this for _groff_ 1.25.  I believe it will reduce user confusion and
frustration.


$ printf '\\C\\h"2m"bogus\\h"2m"\n' | tg -a
troff: backtrace: file '<standard input>':1
troff:<standard input>:1: warning: cannot use a horizontal motion to delimit a
name
<beginning of page>
bogus 


Without the warning, why "bogus" appears as formatted text would be a deep
mystery.

More realistically, a recent change to ban _all_ horizontal motions from use
as escape sequence delimiters means that the following slightly more plausible
input can occur.


$ printf '\\C\\0bogus\\0\n' | tg -a
troff: backtrace: file '<standard input>':1
troff:<standard input>:1: warning: cannot use a horizontal motion to delimit a
name
<beginning of page>
bogus 


...and similarly for `\^` and `\|` instead of `\0`.







    _______________________________________________________

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