> The code in re_compile_pattern says:
>
> /* And GNU code determines whether or not to get register information
> by passing null for the REGS argument to re_match, etc., not by
> setting no_sub, unless RE_NO_SUB is set. */
> bufp->no_sub = !!(re_syntax_options & RE_NO_SUB);
>
> It doesn't seem to be conditional on grouping.
Aha. The answer, then, is that you used to be able to supply no_sub
prior to compilation; but nowadays you have the flag RE_NO_SUB to do the
job instead. So I agree with documenting that no_sub is private (by not
listing it as public).