Update of bug #65717 (group groff): Status: None => Confirmed Assigned to: None => gbranden Summary: tmac/andoc.tmac is not protected against compatibility mode => [mdoc] `doc-end-macro` should be robust to compatibility mode enablement
_______________________________________________________ Follow-up Comment #1: The Summary is false. https://git.savannah.gnu.org/cgit/groff.git/tree/tmac/andoc.tmac?h=1.23.0#n30 https://git.savannah.gnu.org/cgit/groff.git/tree/tmac/andoc.tmac?h=1.23.0#n108 Correcting. Here's a proper reproducer, using stock _groff_ instead of Bjarni's fork. $ ./build/test-groff -mandoc -t -b -ww -z -C build/tmac/groff_mdoc.7 troff: backtrace: '/home/branden/src/GIT/groff/build/../tmac/mdoc/doc-common':1163: trap-called macro 'doc-end-macro' troff: warning: macro 'c-check-depth' not defined troff: backtrace: '/home/branden/src/GIT/groff/build/../tmac/mdoc/doc-common':1165: trap-called macro 'doc-end-macro' troff: warning: register '[' not defined troff: backtrace: '/home/branden/src/GIT/groff/build/../tmac/mdoc/doc-common':1189: trap-called macro 'doc-end-macro' troff: warning: expected numeric expression, got character 'c' troff: backtrace: '/home/branden/src/GIT/groff/build/../tmac/mdoc/doc-common':1190: trap-called macro 'doc-end-macro' troff: warning: macro 'c-break-page-with-new-number' not defined troff: backtrace: '/home/branden/src/GIT/groff/build/../tmac/mdoc/doc-common':1087: trap-called macro 'doc-footer' troff: backtrace: '/home/branden/src/GIT/groff/build/../tmac/mdoc/doc-common':1074: trap-called macro 'doc-break-body-text' troff: warning: macro '[' not defined troff: backtrace: '/home/branden/src/GIT/groff/build/../tmac/mdoc/doc-common':1090: trap-called macro 'doc-footer' troff: backtrace: '/home/branden/src/GIT/groff/build/../tmac/mdoc/doc-common':1074: trap-called macro 'doc-break-body-text' troff: warning: conditional operator 'r' used in compatibility mode > N.B. File name and line number are missing from the warnings! That is because, as you can see above, the warnings are produced by requests executing in a trap context, for which no file or line number information is available/applicable. Please review [https://www.gnu.org/software/groff/manual/groff.html.node/Traps.html the relevant section of the GNU _troff_ manual] for insights that should reduce your exclamations of surprise. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?65717> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/