At 2026-11-14T16:57:37-0800, Stephen Gildea wrote: > G. Branden Robinson <[email protected]> wrote: > > > I invite you to read over <https://savannah.gnu.org/bugs/?68242> > > and let us know what you think. > > I like it, but: > > > [1] Why not guard the requests that save and restore the warning vector? > > So why guard the ".warn -style"?
Because older groffs will reject the bogus syntax. $ echo ".warn -style" | ~/groff-1.25.0/bin/groff troff:<standard input>:1: error: numeric expression containing character 's' is invalid $ echo ".warn -style" | ~/groff-1.24.0/bin/groff troff:<standard input>:1: error: ignoring invalid numeric expression starting with character 's' $ echo ".warn -style" | ~/groff-1.23.0/bin/groff troff:<standard input>:1: warning: expected numeric expression, got 's' $ echo ".warn -style" | ~/groff-1.22.4/bin/groff troff: <standard input>:1: warning: numeric expression expected (got 's') > This whole thing will look > much prettier in my manuscript without the mouthful that is \n(.x=1&\n(.y>25 I agree, but expect the trouble above if you omit it. > > Because they are (on net) idempotent on older groffs and > > provoke no diagnostics from DWB 3.3, Heirloom Doctoools, > > Solaris 10, Plan 9 from User Space troff, nor from mandoc(1). > > I checked. > > You checked? Wow. Not hard. I have them all installed. :) I faced strong selection pressure from subscribers to this list who questioned my knowledge or consideration of non-GNU troff behavior. Somtimes, these people would make claims about non-GNU troff behavior that they must not have bothered to check for themselves. (I think those people have since either unsubscribed, or are wary of challenging me when they suspect I can expose their reckless claims as false.) Bullshitters generally expect to encounter only others of their kind; they do not cope well with people who come to an empirical dispute armed with receipts. ...which isn't to say I don't sometimes screw up and go out on a limb. I appreciate it when people keep me honest. Regards, Branden
signature.asc
Description: PGP signature
