On Tue, Feb 07, 2023 at 10:36:03AM +0100, Patrice Dumas wrote: > > It would of course be much simpler > > to eliminate this separate class of commands and forbid @ref etc. > > inside @section and other commands. Could we consider this again? > > I have not changed my mind, having refs in section names seems to be > used in some contexts for documentation writing, so I still think that > it is good to have. There was a recent case of > https://lists.gnu.org/archive/html/bug-texinfo/2022-11/msg00202.html > with a use case that was incorrect, but an expectation that refs in > section names could work.
I think I nearly have the code worked out to handle the %contain_basic_inline_with_refs commands on the nesting stacks rather than in _check_valid_nesting. Hopefully I can get the code for this committed later today or tomorrow. After that the next thing would be to integrate the 'regions stack' into the nesting stacks too.