On Thu, Oct 20, 2022 at 04:49:59PM +0200, Robert Pluim wrote: > >>>>> On Thu, 20 Oct 2022 14:16:33 +0100, Gavin Smith > >>>>> <[email protected]> said: > > Gavin> On Thu, Oct 20, 2022 at 01:20:19PM +0200, Robert Pluim wrote: > >> platforms, Emacs can yank these objects with the @code{yank-media} > >> command---but only in modes that have support for it (@w{@pxref{Yanking > >> Media,,, elisp, The Emacs Lisp Reference Manual}}). > >> > >> Is there a reason for this new warning? > > Gavin> I don't see any problem with putting @pxref inside @w. In my > opinion > Gavin> it should be fine to put any Texinfo commands that occur inside > Gavin> paragraphs inside @w. This was a very recent change (2022-10-02).
I imagined that @*ref in @w could only be mistake, as would also be 'titlefont', 'anchor', 'footnote', 'verb', 'xref', 'ref', 'pxref', 'inforef'. I can change such as to have @w contain anything that can happen in a paragraph. > I guess thatʼs: > > commit c5800ca1a7 > Author: Patrice Dumas <[email protected]> > AuthorDate: Sun Oct 2 17:24:54 2022 +0200 > Commit: Patrice Dumas <[email protected]> > CommitDate: Sun Oct 2 17:24:54 2022 +0200 > > * NEWS, tp/Texinfo/ParserNonXS.pm, > tp/Texinfo/XS/parsetexi/command_data.txt, > tp/Texinfo/XS/parsetexi/commands.h, tp/Texinfo/XS/parsetexi/parser.c > (check_valid_nesting): add contain_simple_text flag. Set @w to be > contain_simple_text, plain text is too restrictive, there are many > uses of indicatric commands in @w in the Texinfo manual. > > and > > commit 3982dafb8f > Author: Patrice Dumas <[email protected]> > AuthorDate: Sun Oct 2 14:44:10 2022 +0200 > Commit: Patrice Dumas <[email protected]> > CommitDate: Sun Oct 2 14:44:10 2022 +0200 > > Warn if @-commands other than accent, glyphs and symbols appear in @w > > * tp/Texinfo/Common.pm (%contain_plain_text_commands), > tp/Texinfo/XS/parsetexi/command_data.txt, NEWS: add w to > contain_plain_text. > > * tp/Texinfo/Common.pm (%variadic_commands), > tp/Texinfo/ParserNonXS.pm: use the %variadic_commands hash for > variadic commands instead of setting %commands_args_number to > variadic. > > Iʼm allergic to Perl, so Iʼm not going to attempt a patch :-) -- Pat
