>>>>> "RMS" == Richard Stallman <[EMAIL PROTECTED]> writes:
RMS> Can we make woman detect use of the doc macros
RMS> and give a meaningful error message?
Grog(1) (part of groff) uses this logic to guess -man macros:
if:
any line matches /^\.SH[\s\n]/
and if any (other) line matches /^\.TH[\s\n]/
and if no line matches /^\.([pnil]p|sh)[\s\n]/
then:
it uses an
It should be enough for woman to check for those (perl-style)
regexps. At least for now.
For doc, if it is not an, e, om, s or m, and if any
line matches /^\.Dd/, then it is either doc or doc-old.
For after the 22 release, it would seem a good idea to convert the
full grog logic to elisp; I'm sure it would be useful to more than
just woman.
-JimC
--
James Cloos <[EMAIL PROTECTED]> OpenPGP: 1024D/ED7DAEA6
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug