This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gdb.texinfo broken?


Eli Zaretskii wrote:

> The problem with @ifnottex in Texinfo 3.12 are actually a
> bug/misfeature in that version: conditionals such as @ifnottex cannot
> span node boundaries.  Here's a ChangeLog entry from the latest
> Texinfo distribution:

To make this even more entertaining, there are patched versions of
3.12; so for instance my RH 6.1 machine comes with a patched texinfo
3.12f (or 3.12h?, it's not in front of me) where this bug is fixed.
I had to download a base 3.12 just to see the bug.

>   - Duplicate the offending Top node, once wrapped with @ifinfo, the
>     other time wrapped with @ifhtml.  This works for me with Texinfo
>     3.12 and 4.0.  The patch for this alternative is below.
> 
> I recommend to use the second alternative, even though it's kludgey.

I agree.  Fortunately, the main table of contents doesn't change very
often, so we should just need a big obvious comment reminding people
to change both copies of the node, and recommending a re-merge when
4.0 becomes more widespread in a year or two.

> Note that if we use @ifnottex, we need to require Texinfo 3.11 or
> later; Texinfo 3.9 will not work.

I looked at the dates of the releases, and I think we're OK in requiring
3.12 or later.  I'll add a note in the manual to that effect.

Eli, could you commit this patch please?  Thanks...

Stan

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]