Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH, doc]: Rename Index node to prevent file collision
@ 2012-06-14  2:39 Michael Hope
  2012-06-14 15:06 ` Joseph S. Myers
  0 siblings, 1 reply; 23+ messages in thread
From: Michael Hope @ 2012-06-14  2:39 UTC (permalink / raw)
  To: gdb-patches

Hi there.  This patch renames the 'Index' node in the GDB end user documentation to 'GDB Index'
to prevent generating HTML filenames that differ only in case.

makeinfo generates a HTML file per node and uses the node name as the filename.  It also generates
a top level 'index.html'.  This causes problems in Windows as 'index.html' and 'Index.html' differ
only in case.

'GDB Index' matches the binutils style of using 'AS Index' and similar for the different tools.
makeinfo displays the node name to the end user in the window title so you can't use names like
'Index_'.

OK for trunk?

-- Michael

2012-06-14  Michael Hope  <michael.hope@linaro.org>

        * gdb.texinfo (GDB Index): Rename 'Index' to 'GDB Index'.

--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -182,7 +182,7 @@ software in general.  We will miss him.
  * Copying::                    GNU General Public License says
                                  how you can copy and share GDB
  * GNU Free Documentation License::  The license for this documentation
-* Index::                       Index
+* GDB Index::                   GDB Index
  @end menu

  @end ifnottex
@@ -1779,7 +1779,7 @@ and @code{show} to inquire about the state of your program, or the state
  of @value{GDBN} itself.  Each command supports many topics of inquiry; this
  manual introduces each of them in the appropriate context.  The listings
  under @code{info} and under @code{show} in the Index point to
-all the sub-commands.  @xref{Index}.
+all the sub-commands.  @xref{GDB Index}.

  @c @group
  @table @code
@@ -40390,8 +40390,8 @@ A string in the constant pool is zero-terminated.
  @appendix GNU Free Documentation License
  @include fdl.texi

-@node Index
-@unnumbered Index
+@node GDB Index
+@unnumbered GDB Index

  @printindex cp


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-14  2:39 [PATCH, doc]: Rename Index node to prevent file collision Michael Hope
@ 2012-06-14 15:06 ` Joseph S. Myers
  2012-06-14 16:42   ` Eli Zaretskii
  0 siblings, 1 reply; 23+ messages in thread
From: Joseph S. Myers @ 2012-06-14 15:06 UTC (permalink / raw)
  To: Michael Hope; +Cc: gdb-patches

On Thu, 14 Jun 2012, Michael Hope wrote:

> Hi there.  This patch renames the 'Index' node in the GDB end user
> documentation to 'GDB Index'
> to prevent generating HTML filenames that differ only in case.

This was rejected when I submitted it 
<http://sourceware.org/ml/gdb-patches/2009-01/msg00298.html>.

-- 
Joseph S. Myers
joseph@codesourcery.com


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-14 15:06 ` Joseph S. Myers
@ 2012-06-14 16:42   ` Eli Zaretskii
  2012-06-14 21:43     ` Michael Hope
  0 siblings, 1 reply; 23+ messages in thread
From: Eli Zaretskii @ 2012-06-14 16:42 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: michael.hope, gdb-patches

> Date: Thu, 14 Jun 2012 15:06:30 +0000 (UTC)
> From: "Joseph S. Myers" <joseph@codesourcery.com>
> cc: gdb-patches@sourceware.org
> 
> On Thu, 14 Jun 2012, Michael Hope wrote:
> 
> > Hi there.  This patch renames the 'Index' node in the GDB end user
> > documentation to 'GDB Index'
> > to prevent generating HTML filenames that differ only in case.
> 
> This was rejected when I submitted it 
> <http://sourceware.org/ml/gdb-patches/2009-01/msg00298.html>.

Right, and I still would like very much to follow GNU practice in this
matter.

Michael, is your setup also that you produce the HTML files on a Posix
host, but then deploy them on Windows?  If not, can you describe how
you bump into this problem?


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-14 16:42   ` Eli Zaretskii
@ 2012-06-14 21:43     ` Michael Hope
  2012-06-14 22:01       ` Joel Brobecker
  2012-06-15  7:29       ` Eli Zaretskii
  0 siblings, 2 replies; 23+ messages in thread
From: Michael Hope @ 2012-06-14 21:43 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Joseph S. Myers, gdb-patches

On 15 June 2012 04:42, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Thu, 14 Jun 2012 15:06:30 +0000 (UTC)
>> From: "Joseph S. Myers" <joseph@codesourcery.com>
>> cc: gdb-patches@sourceware.org
>>
>> On Thu, 14 Jun 2012, Michael Hope wrote:
>>
>> > Hi there.  This patch renames the 'Index' node in the GDB end user
>> > documentation to 'GDB Index'
>> > to prevent generating HTML filenames that differ only in case.
>>
>> This was rejected when I submitted it
>> <http://sourceware.org/ml/gdb-patches/2009-01/msg00298.html>.
>
> Right, and I still would like very much to follow GNU practice in this
> matter.
>
> Michael, is your setup also that you produce the HTML files on a Posix
> host, but then deploy them on Windows?

Yip.  We supply pre-built toolchains for Linux and Windows[1].  The
build is crtosstool-NG based, runs on Ubuntu Lucid, and uses the LSB
compilers for Linux and the mingw cross compilers for Windows.  We
cross-make the manuals the same as we cross-build the compiler.

The makeinfo manual says: """If makeinfo is run on a system which does
not distinguish case in filenames, nodes which are the same except for
case will also be folded into the same output file.""".  I don't think
that's valid here as the index is a special case: we shouldn't merge
the top level index.html with the output of a node called Index.

-- Michael


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-14 21:43     ` Michael Hope
@ 2012-06-14 22:01       ` Joel Brobecker
  2012-06-14 22:27         ` Michael Hope
  2012-06-15  7:36         ` Eli Zaretskii
  2012-06-15  7:29       ` Eli Zaretskii
  1 sibling, 2 replies; 23+ messages in thread
From: Joel Brobecker @ 2012-06-14 22:01 UTC (permalink / raw)
  To: Michael Hope; +Cc: Eli Zaretskii, Joseph S. Myers, gdb-patches

> Yip.  We supply pre-built toolchains for Linux and Windows[1].  The
> build is crtosstool-NG based, runs on Ubuntu Lucid, and uses the LSB
> compilers for Linux and the mingw cross compilers for Windows.  We
> cross-make the manuals the same as we cross-build the compiler.

I think we do something similar as well. I do not think that this is
an uncommon situation when someone works with GNU software on multiple
platforms.

> The makeinfo manual says: """If makeinfo is run on a system which does
> not distinguish case in filenames, nodes which are the same except for
> case will also be folded into the same output file.""".  I don't think
> that's valid here as the index is a special case: we shouldn't merge
> the top level index.html with the output of a node called Index.

I haven't checked, but is there a command-line option to force
that behavior? And I am also wondering why they wouldn't just
always make sure that the names are always different, irrespective
of casing...

-- 
Joel


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-14 22:01       ` Joel Brobecker
@ 2012-06-14 22:27         ` Michael Hope
  2012-06-15  7:44           ` Eli Zaretskii
  2012-06-15  7:36         ` Eli Zaretskii
  1 sibling, 1 reply; 23+ messages in thread
From: Michael Hope @ 2012-06-14 22:27 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: Eli Zaretskii, Joseph S. Myers, gdb-patches

On 15 June 2012 10:00, Joel Brobecker <brobecker@adacore.com> wrote:
>> Yip.  We supply pre-built toolchains for Linux and Windows[1].  The
>> build is crtosstool-NG based, runs on Ubuntu Lucid, and uses the LSB
>> compilers for Linux and the mingw cross compilers for Windows.  We
>> cross-make the manuals the same as we cross-build the compiler.
>
> I think we do something similar as well. I do not think that this is
> an uncommon situation when someone works with GNU software on multiple
> platforms.
>
>> The makeinfo manual says: """If makeinfo is run on a system which does
>> not distinguish case in filenames, nodes which are the same except for
>> case will also be folded into the same output file.""".  I don't think
>> that's valid here as the index is a special case: we shouldn't merge
>> the top level index.html with the output of a node called Index.
>
> I haven't checked, but is there a command-line option to force
> that behavior?

Not in makeinfo 4.13b.  There's been discussion upstream before about
this with no conclusion:
 http://lists.gnu.org/archive/html/bug-texinfo/2008-12/msg00012.html
 http://lists.gnu.org/archive/html/bug-texinfo/2010-11/msg00033.html

and on this list:
 http://sourceware.org/ml/gdb-patches/2010-11/msg00431.html
 http://sourceware.org/ml/gdb-patches/2009-01/msg00298.html

nodename_to_filename_1() special cases the node 'Top' and rewrites it
to 'index.html'.  Perhaps it should special case if the node is called
'Index'?

Eli, if that sounds OK to you then I'll propose a patch to bug-texinfo
and get it into Ubuntu.  texinfo seems to be dormant so it may be some
time before the patch appears in a release.

> And I am also wondering why they wouldn't just
> always make sure that the names are always different, irrespective
> of casing...

Agreed.  Host independent files like a manual shouldn't change based
on build or host.

-- Michael


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-14 21:43     ` Michael Hope
  2012-06-14 22:01       ` Joel Brobecker
@ 2012-06-15  7:29       ` Eli Zaretskii
  2012-06-17 23:18         ` Michael Hope
  1 sibling, 1 reply; 23+ messages in thread
From: Eli Zaretskii @ 2012-06-15  7:29 UTC (permalink / raw)
  To: Michael Hope; +Cc: joseph, gdb-patches

> From: Michael Hope <michael.hope@linaro.org>
> Date: Fri, 15 Jun 2012 09:43:21 +1200
> Cc: "Joseph S. Myers" <joseph@codesourcery.com>, gdb-patches@sourceware.org
> 
> > Michael, is your setup also that you produce the HTML files on a Posix
> > host, but then deploy them on Windows?
> 
> Yip.  We supply pre-built toolchains for Linux and Windows[1].  The
> build is crtosstool-NG based, runs on Ubuntu Lucid, and uses the LSB
> compilers for Linux and the mingw cross compilers for Windows.  We
> cross-make the manuals the same as we cross-build the compiler.

Can you simply concatenate the two [iI]ndex.html files into the same
file?

> The makeinfo manual says: """If makeinfo is run on a system which does
> not distinguish case in filenames, nodes which are the same except for
> case will also be folded into the same output file.""".

What that means is that the file index.html should have 2 nodes on it,
each with its own label, so HTML references work correctly.  Why is
this a problem?


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-14 22:01       ` Joel Brobecker
  2012-06-14 22:27         ` Michael Hope
@ 2012-06-15  7:36         ` Eli Zaretskii
  2012-06-15 12:19           ` Joel Brobecker
  2012-06-17 23:26           ` Michael Hope
  1 sibling, 2 replies; 23+ messages in thread
From: Eli Zaretskii @ 2012-06-15  7:36 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: michael.hope, joseph, gdb-patches

> Date: Thu, 14 Jun 2012 15:00:37 -0700
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: Eli Zaretskii <eliz@gnu.org>,
> 	"Joseph S. Myers" <joseph@codesourcery.com>,
> 	gdb-patches@sourceware.org
> 
> > The makeinfo manual says: """If makeinfo is run on a system which does
> > not distinguish case in filenames, nodes which are the same except for
> > case will also be folded into the same output file.""".  I don't think
> > that's valid here as the index is a special case: we shouldn't merge
> > the top level index.html with the output of a node called Index.
> 
> I haven't checked, but is there a command-line option to force
> that behavior? And I am also wondering why they wouldn't just
> always make sure that the names are always different, irrespective
> of casing...

makeinfo is no longer maintained.  It will be replaced in the next
Texinfo release with a Perl-based reimplementation from scratch, which
is said to give us all kinds of wonders, and where you should ask for
this feature.

I have no idea when the next release will happen.  Until then, I would
suggest that the interested parties simply hack their own copies of
makeinfo to do what you need.  The code that puts several nodes on the
same HTML file and adjusts the links to DTRT is there, it just isn't
enabled on Posix platforms.  Enable it, and you are home free.  If you
need my help, just ask (I'm the one who adapted makeinfo to
case-insensitive filesystems years ago, and the text quoted above is
my fault).


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-14 22:27         ` Michael Hope
@ 2012-06-15  7:44           ` Eli Zaretskii
  0 siblings, 0 replies; 23+ messages in thread
From: Eli Zaretskii @ 2012-06-15  7:44 UTC (permalink / raw)
  To: Michael Hope; +Cc: brobecker, joseph, gdb-patches

> From: Michael Hope <michael.hope@linaro.org>
> Date: Fri, 15 Jun 2012 10:27:05 +1200
> Cc: Eli Zaretskii <eliz@gnu.org>, "Joseph S. Myers" <joseph@codesourcery.com>, gdb-patches@sourceware.org
> 
> > I haven't checked, but is there a command-line option to force
> > that behavior?
> 
> Not in makeinfo 4.13b.  There's been discussion upstream before about
> this with no conclusion:
>  http://lists.gnu.org/archive/html/bug-texinfo/2008-12/msg00012.html
>  http://lists.gnu.org/archive/html/bug-texinfo/2010-11/msg00033.html

Patrice Dumas is the developer of the replacement for makeinfo, so I
guess you can expect the solution he liked in that thread when the
next version of Texinfo is out.


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-15  7:36         ` Eli Zaretskii
@ 2012-06-15 12:19           ` Joel Brobecker
  2012-06-17 23:26           ` Michael Hope
  1 sibling, 0 replies; 23+ messages in thread
From: Joel Brobecker @ 2012-06-15 12:19 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: michael.hope, joseph, gdb-patches

> I have no idea when the next release will happen.

I wrote the development mailing list, and they said hopefully this
summer.

-- 
Joel


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-15  7:29       ` Eli Zaretskii
@ 2012-06-17 23:18         ` Michael Hope
  0 siblings, 0 replies; 23+ messages in thread
From: Michael Hope @ 2012-06-17 23:18 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: joseph, gdb-patches

On 15 June 2012 19:28, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Michael Hope <michael.hope@linaro.org>
>> Date: Fri, 15 Jun 2012 09:43:21 +1200
>> Cc: "Joseph S. Myers" <joseph@codesourcery.com>, gdb-patches@sourceware.org
>>
>> > Michael, is your setup also that you produce the HTML files on a Posix
>> > host, but then deploy them on Windows?
>>
>> Yip.  We supply pre-built toolchains for Linux and Windows[1].  The
>> build is crtosstool-NG based, runs on Ubuntu Lucid, and uses the LSB
>> compilers for Linux and the mingw cross compilers for Windows.  We
>> cross-make the manuals the same as we cross-build the compiler.
>
> Can you simply concatenate the two [iI]ndex.html files into the same
> file?

Not without rewriting the HTML versions as each have their own head and body.

>> The makeinfo manual says: """If makeinfo is run on a system which does
>> not distinguish case in filenames, nodes which are the same except for
>> case will also be folded into the same output file.""".
>
> What that means is that the file index.html should have 2 nodes on it,
> each with its own label, so HTML references work correctly.  Why is
> this a problem?

It's not what the author asked for and confuses the reader by
increasing the clutter.  The Top node introduces the user to the
documentation and should be minimal.

There's no way of doing this in makeinfo 4.13b on a case insensitive
filesystem.  If we need to patch makeinfo then I'd rather have one
file per node.

-- Michael


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-15  7:36         ` Eli Zaretskii
  2012-06-15 12:19           ` Joel Brobecker
@ 2012-06-17 23:26           ` Michael Hope
  2012-06-18  2:53             ` Eli Zaretskii
  1 sibling, 1 reply; 23+ messages in thread
From: Michael Hope @ 2012-06-17 23:26 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Joel Brobecker, joseph, gdb-patches

On 15 June 2012 19:35, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Thu, 14 Jun 2012 15:00:37 -0700
>> From: Joel Brobecker <brobecker@adacore.com>
>> Cc: Eli Zaretskii <eliz@gnu.org>,
>>       "Joseph S. Myers" <joseph@codesourcery.com>,
>>       gdb-patches@sourceware.org
>>
>> > The makeinfo manual says: """If makeinfo is run on a system which does
>> > not distinguish case in filenames, nodes which are the same except for
>> > case will also be folded into the same output file.""".  I don't think
>> > that's valid here as the index is a special case: we shouldn't merge
>> > the top level index.html with the output of a node called Index.
>>
>> I haven't checked, but is there a command-line option to force
>> that behavior? And I am also wondering why they wouldn't just
>> always make sure that the names are always different, irrespective
>> of casing...
>
> makeinfo is no longer maintained.  It will be replaced in the next
> Texinfo release with a Perl-based reimplementation from scratch, which
> is said to give us all kinds of wonders, and where you should ask for
> this feature.
>
> I have no idea when the next release will happen.  Until then, I would
> suggest that the interested parties simply hack their own copies of
> makeinfo to do what you need.

This isn't ideal.  The problem has been discussed multiple times over
four years, affects at least four groups, and might be fixed by a
rewrite that might come out in the future.

Changing the node name works around a tools problem and makes the
output the same for all hosts.  I agree that 'Index' is more natural
than 'GDB Index'.  How about matching GCC, and call it the 'Concept
Index' instead?

-- Michael


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-17 23:26           ` Michael Hope
@ 2012-06-18  2:53             ` Eli Zaretskii
  2012-06-21  4:20               ` Michael Hope
  0 siblings, 1 reply; 23+ messages in thread
From: Eli Zaretskii @ 2012-06-18  2:53 UTC (permalink / raw)
  To: Michael Hope; +Cc: brobecker, joseph, gdb-patches

> From: Michael Hope <michael.hope@linaro.org>
> Date: Mon, 18 Jun 2012 11:26:04 +1200
> Cc: Joel Brobecker <brobecker@adacore.com>, joseph@codesourcery.com, 
> 	gdb-patches@sourceware.org
> 
> Changing the node name works around a tools problem and makes the
> output the same for all hosts.

I fail to understand why working around by changes in one file
(gdb.texinfo) is acceptable, but working around in another file
(makeinfo's source) is not.  I guess I'm missing something.

> I agree that 'Index' is more natural than 'GDB Index'.  How about
> matching GCC, and call it the 'Concept Index' instead?

(I wouldn't take example from GCC in any documentation-related area,
if you catch my drift.  I can never find anything there.  I hope the
GDB manual is better.)

The problem with your suggestion is that the GDB index is not a
concept index, it is all the indices lumped into one.  But I would be
OK if we separate the concept index from the rest, and then we could
have "Concept Index" and "Command and Variable Index".


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-18  2:53             ` Eli Zaretskii
@ 2012-06-21  4:20               ` Michael Hope
  2012-06-21 16:22                 ` Eli Zaretskii
  0 siblings, 1 reply; 23+ messages in thread
From: Michael Hope @ 2012-06-21  4:20 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: brobecker, joseph, gdb-patches

On 18 June 2012 14:53, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Michael Hope <michael.hope@linaro.org>
>> Date: Mon, 18 Jun 2012 11:26:04 +1200
>> Cc: Joel Brobecker <brobecker@adacore.com>, joseph@codesourcery.com,
>>       gdb-patches@sourceware.org
>>
>> Changing the node name works around a tools problem and makes the
>> output the same for all hosts.
>
> I fail to understand why working around by changes in one file
> (gdb.texinfo) is acceptable, but working around in another file
> (makeinfo's source) is not.  I guess I'm missing something.

GDB is an active project.  Even if makeinfo was alive, it's nice to be
able to use the tools already shipped with long term releases like
Ubuntu 10.04.

I'd argue that if there's a tool problem we fix it in the tool and, if
the workaround is tidy and has no ongoing cost, work around it in GDB
as well.

>> I agree that 'Index' is more natural than 'GDB Index'.  How about
>> matching GCC, and call it the 'Concept Index' instead?
>
> (I wouldn't take example from GCC in any documentation-related area,
> if you catch my drift.  I can never find anything there.  I hope the
> GDB manual is better.)

Renaming the node doesn't affect the content or findability of the
documentation.

> The problem with your suggestion is that the GDB index is not a
> concept index, it is all the indices lumped into one.  But I would be
> OK if we separate the concept index from the rest, and then we could
> have "Concept Index" and "Command and Variable Index".

I'd rather not go there as it's a big change for little gain.

There's a few options so far:
 1. Leave it and have many groups with many hack arounds (ergh)
 2. Match bintuils and rename to 'GDB Index' (not natural)
 3. Match GCC and rename to 'Concept Index' (strictly true but confusing)
 4. Wait for makeinfo to be re-written and released
 5. Rewrite the filenames after generation

The last is what we currently do:  build on a case sensitive
filesystem, rename Index.html to Index_.html, and use sed to rewrite
the links in all other files.  This keeps the text the same and
doesn't require a change to makeinfo, but is a hack.

Shall I send a patch?

-- Michael


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-21  4:20               ` Michael Hope
@ 2012-06-21 16:22                 ` Eli Zaretskii
  2012-06-21 22:36                   ` Michael Hope
  0 siblings, 1 reply; 23+ messages in thread
From: Eli Zaretskii @ 2012-06-21 16:22 UTC (permalink / raw)
  To: Michael Hope; +Cc: brobecker, joseph, gdb-patches

> From: Michael Hope <michael.hope@linaro.org>
> Date: Thu, 21 Jun 2012 16:19:48 +1200
> Cc: brobecker@adacore.com, joseph@codesourcery.com, gdb-patches@sourceware.org
> 
> > I fail to understand why working around by changes in one file
> > (gdb.texinfo) is acceptable, but working around in another file
> > (makeinfo's source) is not.  I guess I'm missing something.
> 
> GDB is an active project.  Even if makeinfo was alive, it's nice to be
> able to use the tools already shipped with long term releases like
> Ubuntu 10.04.

Texinfo is actively maintained as well.  It is also nice to be able to
generate a manual without having to jump through hoops.

It simply sounds unfair that you are asking a project to fix problems
of another.

> > The problem with your suggestion is that the GDB index is not a
> > concept index, it is all the indices lumped into one.  But I would be
> > OK if we separate the concept index from the rest, and then we could
> > have "Concept Index" and "Command and Variable Index".
> 
> I'd rather not go there as it's a big change for little gain.

??? It's as simple as modifying the "@syncodeindex" directives at the
beginning of gdb.texinfo, and then adding 2 @node lines for the two
indices, instead of the current one.  All the rest will be done by
makeinfo.  Am I missing something?


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-21 16:22                 ` Eli Zaretskii
@ 2012-06-21 22:36                   ` Michael Hope
  2012-06-22  5:58                     ` Eli Zaretskii
  0 siblings, 1 reply; 23+ messages in thread
From: Michael Hope @ 2012-06-21 22:36 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: brobecker, joseph, gdb-patches

On 22 June 2012 04:22, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Michael Hope <michael.hope@linaro.org>
>> Date: Thu, 21 Jun 2012 16:19:48 +1200
>> Cc: brobecker@adacore.com, joseph@codesourcery.com, gdb-patches@sourceware.org
>>
>> > I fail to understand why working around by changes in one file
>> > (gdb.texinfo) is acceptable, but working around in another file
>> > (makeinfo's source) is not.  I guess I'm missing something.
>>
>> GDB is an active project.  Even if makeinfo was alive, it's nice to be
>> able to use the tools already shipped with long term releases like
>> Ubuntu 10.04.
>
> Texinfo is actively maintained as well.

The last release was four years ago.  The list has around five threads
a month.  The ChangeLog shows recent development by Karl.

I'm happy to post a patch to makeinfo similar to
http://sourceware.org/ml/gdb-patches/2012-06/msg00496.html.  I'll do
that next as another avenue.

>  It is also nice to be able to
> generate a manual without having to jump through hoops.

I agree, including being able to cross build the manual for case
insensitive systems.

> It simply sounds unfair that you are asking a project to fix problems
> of another.

Yes if there's a need in the community, the problem won't be fixed in
a reasonable time in the tool, the work around is benign, and it
doesn't cost us down the road.

>> > The problem with your suggestion is that the GDB index is not a
>> > concept index, it is all the indices lumped into one.  But I would be
>> > OK if we separate the concept index from the rest, and then we could
>> > have "Concept Index" and "Command and Variable Index".
>>
>> I'd rather not go there as it's a big change for little gain.
>
> ??? It's as simple as modifying the "@syncodeindex" directives at the
> beginning of gdb.texinfo, and then adding 2 @node lines for the two
> indices, instead of the current one.  All the rest will be done by
> makeinfo.  Am I missing something?

Sorry, I assumed that we'd have to check and perhaps update each index
entry to see that it's in the right category.  Your texinfo foo is
better than mine - could you post a patch?

-- Michael


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-21 22:36                   ` Michael Hope
@ 2012-06-22  5:58                     ` Eli Zaretskii
  2012-06-22 10:03                       ` Eli Zaretskii
  0 siblings, 1 reply; 23+ messages in thread
From: Eli Zaretskii @ 2012-06-22  5:58 UTC (permalink / raw)
  To: Michael Hope; +Cc: brobecker, joseph, gdb-patches

> From: Michael Hope <michael.hope@linaro.org>
> Date: Fri, 22 Jun 2012 10:36:02 +1200
> Cc: brobecker@adacore.com, joseph@codesourcery.com, gdb-patches@sourceware.org
> 
> >> > I fail to understand why working around by changes in one file
> >> > (gdb.texinfo) is acceptable, but working around in another file
> >> > (makeinfo's source) is not.  I guess I'm missing something.
> >>
> >> GDB is an active project.  Even if makeinfo was alive, it's nice to be
> >> able to use the tools already shipped with long term releases like
> >> Ubuntu 10.04.
> >
> > Texinfo is actively maintained as well.
> 
> The last release was four years ago.  The list has around five threads
> a month.  The ChangeLog shows recent development by Karl.

I don't see how this matters, when you have a publicly accessible CVS
repository.  What's important is that there are 3 active developers
who are responsive to questions and bug reports.

> I'm happy to post a patch to makeinfo similar to
> http://sourceware.org/ml/gdb-patches/2012-06/msg00496.html.  I'll do
> that next as another avenue.

Thank you.

> >> > The problem with your suggestion is that the GDB index is not a
> >> > concept index, it is all the indices lumped into one.  But I would be
> >> > OK if we separate the concept index from the rest, and then we could
> >> > have "Concept Index" and "Command and Variable Index".
> >>
> >> I'd rather not go there as it's a big change for little gain.
> >
> > ??? It's as simple as modifying the "@syncodeindex" directives at the
> > beginning of gdb.texinfo, and then adding 2 @node lines for the two
> > indices, instead of the current one.  All the rest will be done by
> > makeinfo.  Am I missing something?
> 
> Sorry, I assumed that we'd have to check and perhaps update each index
> entry to see that it's in the right category.

No.  We already have separate index categories: see the @kindex,
@findex, @vindex, etc. directives, in addition to @cindex, that we
have all over the manual.  It's just that these 4 directives at the
beginning of gdb.texinfo:

  @syncodeindex ky cp
  @syncodeindex tp cp

  @c readline appendices use @vindex, @findex and @ftable,
  @c annotate.texi and gdbmi use @findex.
  @syncodeindex vr cp
  @syncodeindex fn cp

arrange for all of them to be lumped into a single index "cp" (which
stands for "Concept Index"), and so this directive in the single
"Index" node we have:

  @printindex cp

prints all of the index entries together.

> Your texinfo foo is better than mine - could you post a patch?

OK.


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-22  5:58                     ` Eli Zaretskii
@ 2012-06-22 10:03                       ` Eli Zaretskii
  2012-07-01 19:56                         ` Eli Zaretskii
  0 siblings, 1 reply; 23+ messages in thread
From: Eli Zaretskii @ 2012-06-22 10:03 UTC (permalink / raw)
  To: michael.hope; +Cc: brobecker, joseph, gdb-patches

> Date: Fri, 22 Jun 2012 08:58:19 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: brobecker@adacore.com, joseph@codesourcery.com, gdb-patches@sourceware.org
> 
> > >> > The problem with your suggestion is that the GDB index is not a
> > >> > concept index, it is all the indices lumped into one.  But I would be
> > >> > OK if we separate the concept index from the rest, and then we could
> > >> > have "Concept Index" and "Command and Variable Index".
> > >>
> > >> I'd rather not go there as it's a big change for little gain.
> > >
> > > ??? It's as simple as modifying the "@syncodeindex" directives at the
> > > beginning of gdb.texinfo, and then adding 2 @node lines for the two
> > > indices, instead of the current one.  All the rest will be done by
> > > makeinfo.  Am I missing something?
> > 
> > Sorry, I assumed that we'd have to check and perhaps update each index
> > entry to see that it's in the right category.
> 
> No.  We already have separate index categories: see the @kindex,
> @findex, @vindex, etc. directives, in addition to @cindex, that we
> have all over the manual.  It's just that these 4 directives at the
> beginning of gdb.texinfo:
> 
>   @syncodeindex ky cp
>   @syncodeindex tp cp
> 
>   @c readline appendices use @vindex, @findex and @ftable,
>   @c annotate.texi and gdbmi use @findex.
>   @syncodeindex vr cp
>   @syncodeindex fn cp
> 
> arrange for all of them to be lumped into a single index "cp" (which
> stands for "Concept Index"), and so this directive in the single
> "Index" node we have:
> 
>   @printindex cp
> 
> prints all of the index entries together.
> 
> > Your texinfo foo is better than mine - could you post a patch?
> 
> OK.

Here it is.  Does this solve your problem?


Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.978
diff -u -p -r1.978 gdb.texinfo
--- gdb.texinfo	22 Jun 2012 08:37:49 -0000	1.978
+++ gdb.texinfo	22 Jun 2012 10:01:35 -0000
@@ -18,13 +18,17 @@
 @end iftex
 
 @finalout
-@syncodeindex ky cp
-@syncodeindex tp cp
+@c To avoid file-name clashes between index.html and Index.html, when
+@c the manual is produced on a Posix host and then moved to a
+@c case-insensitive filesystem (e.g., MS-Windows), we separate the
+@c indices into two: Concept Index and all the rest.
+@syncodeindex ky fn
+@syncodeindex tp fn
 
 @c readline appendices use @vindex, @findex and @ftable,
 @c annotate.texi and gdbmi use @findex.
-@syncodeindex vr cp
-@syncodeindex fn cp
+@syncodeindex vr fn
+@syncodeindex fn fn
 
 @c !!set GDB manual's edition---not the same as GDB version!
 @c This is updated by GNU Press.
@@ -182,7 +186,9 @@ software in general.  We will miss him.
 * Copying::			GNU General Public License says
                                 how you can copy and share GDB
 * GNU Free Documentation License::  The license for this documentation
-* Index::                       Index
+* Concept Index::               Index of @value{GDBN} concepts
+* Command and Variable Index::  Index of @value{GDBN} commands, variables,
+                                  functions, and Python data types
 @end menu
 
 @end ifnottex
@@ -1780,8 +1786,9 @@ In addition to @code{help}, you can use 
 and @code{show} to inquire about the state of your program, or the state
 of @value{GDBN} itself.  Each command supports many topics of inquiry; this
 manual introduces each of them in the appropriate context.  The listings
-under @code{info} and under @code{show} in the Index point to
-all the sub-commands.  @xref{Index}.
+under @code{info} and under @code{show} in the Command, Variable, and
+Function Index point to all the sub-commands.  @xref{Command and Variable
+Index}.
 
 @c @group
 @table @code
@@ -40415,11 +40422,16 @@ A string in the constant pool is zero-te
 @appendix GNU Free Documentation License
 @include fdl.texi
 
-@node Index
-@unnumbered Index
+@node Concept Index
+@unnumbered Concept Index
 
 @printindex cp
 
+@node Command and Variable Index
+@unnumbered Command, Variable, and Function Index
+
+@printindex fn
+
 @tex
 % I think something like @@colophon should be in texinfo.  In the
 % meantime:


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-06-22 10:03                       ` Eli Zaretskii
@ 2012-07-01 19:56                         ` Eli Zaretskii
  2012-07-02  1:03                           ` Michael Hope
  0 siblings, 1 reply; 23+ messages in thread
From: Eli Zaretskii @ 2012-07-01 19:56 UTC (permalink / raw)
  To: michael.hope; +Cc: brobecker, joseph, gdb-patches

Ping!  Should I commit this?

> Date: Fri, 22 Jun 2012 13:02:46 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: brobecker@adacore.com, joseph@codesourcery.com, gdb-patches@sourceware.org
> 
> > Date: Fri, 22 Jun 2012 08:58:19 +0300
> > From: Eli Zaretskii <eliz@gnu.org>
> > Cc: brobecker@adacore.com, joseph@codesourcery.com, gdb-patches@sourceware.org
> > 
> > > >> > The problem with your suggestion is that the GDB index is not a
> > > >> > concept index, it is all the indices lumped into one.  But I would be
> > > >> > OK if we separate the concept index from the rest, and then we could
> > > >> > have "Concept Index" and "Command and Variable Index".
> > > >>
> > > >> I'd rather not go there as it's a big change for little gain.
> > > >
> > > > ??? It's as simple as modifying the "@syncodeindex" directives at the
> > > > beginning of gdb.texinfo, and then adding 2 @node lines for the two
> > > > indices, instead of the current one.  All the rest will be done by
> > > > makeinfo.  Am I missing something?
> > > 
> > > Sorry, I assumed that we'd have to check and perhaps update each index
> > > entry to see that it's in the right category.
> > 
> > No.  We already have separate index categories: see the @kindex,
> > @findex, @vindex, etc. directives, in addition to @cindex, that we
> > have all over the manual.  It's just that these 4 directives at the
> > beginning of gdb.texinfo:
> > 
> >   @syncodeindex ky cp
> >   @syncodeindex tp cp
> > 
> >   @c readline appendices use @vindex, @findex and @ftable,
> >   @c annotate.texi and gdbmi use @findex.
> >   @syncodeindex vr cp
> >   @syncodeindex fn cp
> > 
> > arrange for all of them to be lumped into a single index "cp" (which
> > stands for "Concept Index"), and so this directive in the single
> > "Index" node we have:
> > 
> >   @printindex cp
> > 
> > prints all of the index entries together.
> > 
> > > Your texinfo foo is better than mine - could you post a patch?
> > 
> > OK.
> 
> Here it is.  Does this solve your problem?
> 
> 
> Index: gdb.texinfo
> ===================================================================
> RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
> retrieving revision 1.978
> diff -u -p -r1.978 gdb.texinfo
> --- gdb.texinfo	22 Jun 2012 08:37:49 -0000	1.978
> +++ gdb.texinfo	22 Jun 2012 10:01:35 -0000
> @@ -18,13 +18,17 @@
>  @end iftex
>  
>  @finalout
> -@syncodeindex ky cp
> -@syncodeindex tp cp
> +@c To avoid file-name clashes between index.html and Index.html, when
> +@c the manual is produced on a Posix host and then moved to a
> +@c case-insensitive filesystem (e.g., MS-Windows), we separate the
> +@c indices into two: Concept Index and all the rest.
> +@syncodeindex ky fn
> +@syncodeindex tp fn
>  
>  @c readline appendices use @vindex, @findex and @ftable,
>  @c annotate.texi and gdbmi use @findex.
> -@syncodeindex vr cp
> -@syncodeindex fn cp
> +@syncodeindex vr fn
> +@syncodeindex fn fn
>  
>  @c !!set GDB manual's edition---not the same as GDB version!
>  @c This is updated by GNU Press.
> @@ -182,7 +186,9 @@ software in general.  We will miss him.
>  * Copying::			GNU General Public License says
>                                  how you can copy and share GDB
>  * GNU Free Documentation License::  The license for this documentation
> -* Index::                       Index
> +* Concept Index::               Index of @value{GDBN} concepts
> +* Command and Variable Index::  Index of @value{GDBN} commands, variables,
> +                                  functions, and Python data types
>  @end menu
>  
>  @end ifnottex
> @@ -1780,8 +1786,9 @@ In addition to @code{help}, you can use 
>  and @code{show} to inquire about the state of your program, or the state
>  of @value{GDBN} itself.  Each command supports many topics of inquiry; this
>  manual introduces each of them in the appropriate context.  The listings
> -under @code{info} and under @code{show} in the Index point to
> -all the sub-commands.  @xref{Index}.
> +under @code{info} and under @code{show} in the Command, Variable, and
> +Function Index point to all the sub-commands.  @xref{Command and Variable
> +Index}.
>  
>  @c @group
>  @table @code
> @@ -40415,11 +40422,16 @@ A string in the constant pool is zero-te
>  @appendix GNU Free Documentation License
>  @include fdl.texi
>  
> -@node Index
> -@unnumbered Index
> +@node Concept Index
> +@unnumbered Concept Index
>  
>  @printindex cp
>  
> +@node Command and Variable Index
> +@unnumbered Command, Variable, and Function Index
> +
> +@printindex fn
> +
>  @tex
>  % I think something like @@colophon should be in texinfo.  In the
>  % meantime:
> 


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-07-01 19:56                         ` Eli Zaretskii
@ 2012-07-02  1:03                           ` Michael Hope
  2012-07-03 16:23                             ` Eli Zaretskii
                                               ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Michael Hope @ 2012-07-02  1:03 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: brobecker, joseph, gdb-patches

On 2 July 2012 07:55, Eli Zaretskii <eliz@gnu.org> wrote:
> Ping!  Should I commit this?

It fixes my issue,

-- Michael

>> Date: Fri, 22 Jun 2012 13:02:46 +0300
>> From: Eli Zaretskii <eliz@gnu.org>
>> Cc: brobecker@adacore.com, joseph@codesourcery.com, gdb-patches@sourceware.org
>>
>> > Date: Fri, 22 Jun 2012 08:58:19 +0300
>> > From: Eli Zaretskii <eliz@gnu.org>
>> > Cc: brobecker@adacore.com, joseph@codesourcery.com, gdb-patches@sourceware.org
>> >
>> > > >> > The problem with your suggestion is that the GDB index is not a
>> > > >> > concept index, it is all the indices lumped into one.  But I would be
>> > > >> > OK if we separate the concept index from the rest, and then we could
>> > > >> > have "Concept Index" and "Command and Variable Index".
>> > > >>
>> > > >> I'd rather not go there as it's a big change for little gain.
>> > > >
>> > > > ??? It's as simple as modifying the "@syncodeindex" directives at the
>> > > > beginning of gdb.texinfo, and then adding 2 @node lines for the two
>> > > > indices, instead of the current one.  All the rest will be done by
>> > > > makeinfo.  Am I missing something?
>> > >
>> > > Sorry, I assumed that we'd have to check and perhaps update each index
>> > > entry to see that it's in the right category.
>> >
>> > No.  We already have separate index categories: see the @kindex,
>> > @findex, @vindex, etc. directives, in addition to @cindex, that we
>> > have all over the manual.  It's just that these 4 directives at the
>> > beginning of gdb.texinfo:
>> >
>> >   @syncodeindex ky cp
>> >   @syncodeindex tp cp
>> >
>> >   @c readline appendices use @vindex, @findex and @ftable,
>> >   @c annotate.texi and gdbmi use @findex.
>> >   @syncodeindex vr cp
>> >   @syncodeindex fn cp
>> >
>> > arrange for all of them to be lumped into a single index "cp" (which
>> > stands for "Concept Index"), and so this directive in the single
>> > "Index" node we have:
>> >
>> >   @printindex cp
>> >
>> > prints all of the index entries together.
>> >
>> > > Your texinfo foo is better than mine - could you post a patch?
>> >
>> > OK.
>>
>> Here it is.  Does this solve your problem?
>>
>>
>> Index: gdb.texinfo
>> ===================================================================
>> RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
>> retrieving revision 1.978
>> diff -u -p -r1.978 gdb.texinfo
>> --- gdb.texinfo       22 Jun 2012 08:37:49 -0000      1.978
>> +++ gdb.texinfo       22 Jun 2012 10:01:35 -0000
>> @@ -18,13 +18,17 @@
>>  @end iftex
>>
>>  @finalout
>> -@syncodeindex ky cp
>> -@syncodeindex tp cp
>> +@c To avoid file-name clashes between index.html and Index.html, when
>> +@c the manual is produced on a Posix host and then moved to a
>> +@c case-insensitive filesystem (e.g., MS-Windows), we separate the
>> +@c indices into two: Concept Index and all the rest.
>> +@syncodeindex ky fn
>> +@syncodeindex tp fn
>>
>>  @c readline appendices use @vindex, @findex and @ftable,
>>  @c annotate.texi and gdbmi use @findex.
>> -@syncodeindex vr cp
>> -@syncodeindex fn cp
>> +@syncodeindex vr fn
>> +@syncodeindex fn fn
>>
>>  @c !!set GDB manual's edition---not the same as GDB version!
>>  @c This is updated by GNU Press.
>> @@ -182,7 +186,9 @@ software in general.  We will miss him.
>>  * Copying::                  GNU General Public License says
>>                                  how you can copy and share GDB
>>  * GNU Free Documentation License::  The license for this documentation
>> -* Index::                       Index
>> +* Concept Index::               Index of @value{GDBN} concepts
>> +* Command and Variable Index::  Index of @value{GDBN} commands, variables,
>> +                                  functions, and Python data types
>>  @end menu
>>
>>  @end ifnottex
>> @@ -1780,8 +1786,9 @@ In addition to @code{help}, you can use
>>  and @code{show} to inquire about the state of your program, or the state
>>  of @value{GDBN} itself.  Each command supports many topics of inquiry; this
>>  manual introduces each of them in the appropriate context.  The listings
>> -under @code{info} and under @code{show} in the Index point to
>> -all the sub-commands.  @xref{Index}.
>> +under @code{info} and under @code{show} in the Command, Variable, and
>> +Function Index point to all the sub-commands.  @xref{Command and Variable
>> +Index}.
>>
>>  @c @group
>>  @table @code
>> @@ -40415,11 +40422,16 @@ A string in the constant pool is zero-te
>>  @appendix GNU Free Documentation License
>>  @include fdl.texi
>>
>> -@node Index
>> -@unnumbered Index
>> +@node Concept Index
>> +@unnumbered Concept Index
>>
>>  @printindex cp
>>
>> +@node Command and Variable Index
>> +@unnumbered Command, Variable, and Function Index
>> +
>> +@printindex fn
>> +
>>  @tex
>>  % I think something like @@colophon should be in texinfo.  In the
>>  % meantime:
>>


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
  2012-07-02  1:03                           ` Michael Hope
@ 2012-07-03 16:23                             ` Eli Zaretskii
  2012-07-11  5:14                             ` Terry Guo
       [not found]                             ` <000201cd5f24$1ff8e8c0$5feaba40$%guo@arm.com>
  2 siblings, 0 replies; 23+ messages in thread
From: Eli Zaretskii @ 2012-07-03 16:23 UTC (permalink / raw)
  To: Michael Hope; +Cc: brobecker, joseph, gdb-patches

> From: Michael Hope <michael.hope@linaro.org>
> Date: Mon, 2 Jul 2012 13:02:56 +1200
> Cc: brobecker@adacore.com, joseph@codesourcery.com, gdb-patches@sourceware.org
> 
> On 2 July 2012 07:55, Eli Zaretskii <eliz@gnu.org> wrote:
> > Ping!  Should I commit this?
> 
> It fixes my issue,

Committed.


^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: [PATCH, doc]: Rename Index node to prevent file collision
  2012-07-02  1:03                           ` Michael Hope
  2012-07-03 16:23                             ` Eli Zaretskii
@ 2012-07-11  5:14                             ` Terry Guo
       [not found]                             ` <000201cd5f24$1ff8e8c0$5feaba40$%guo@arm.com>
  2 siblings, 0 replies; 23+ messages in thread
From: Terry Guo @ 2012-07-11  5:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: brobecker, joseph, gdb-patches, 'Michael Hope'

Hi Eli,

When "make html" for gdbint.texi on case-insensitive Mac OS X, we still meet
index.html and Index.html issue. Could you please also apply same fix to
gdbint.texi? Thanks.

BR,
Terry

> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of Michael Hope
> Sent: Monday, July 02, 2012 9:03 AM
> To: Eli Zaretskii
> Cc: brobecker@adacore.com; joseph@codesourcery.com; gdb-
> patches@sourceware.org
> Subject: Re: [PATCH, doc]: Rename Index node to prevent file collision
> 
> On 2 July 2012 07:55, Eli Zaretskii <eliz@gnu.org> wrote:
> > Ping!  Should I commit this?
> 
> It fixes my issue,
> 
> -- Michael
> 
> >> Date: Fri, 22 Jun 2012 13:02:46 +0300
> >> From: Eli Zaretskii <eliz@gnu.org>
> >> Cc: brobecker@adacore.com, joseph@codesourcery.com, gdb-
> patches@sourceware.org
> >>
> >> > Date: Fri, 22 Jun 2012 08:58:19 +0300
> >> > From: Eli Zaretskii <eliz@gnu.org>
> >> > Cc: brobecker@adacore.com, joseph@codesourcery.com, gdb-
> patches@sourceware.org
> >> >
> >> > > >> > The problem with your suggestion is that the GDB index is
> not a
> >> > > >> > concept index, it is all the indices lumped into one.  But
> I would be
> >> > > >> > OK if we separate the concept index from the rest, and then
> we could
> >> > > >> > have "Concept Index" and "Command and Variable Index".
> >> > > >>
> >> > > >> I'd rather not go there as it's a big change for little gain.
> >> > > >
> >> > > > ??? It's as simple as modifying the "@syncodeindex" directives
> at the
> >> > > > beginning of gdb.texinfo, and then adding 2 @node lines for
> the two
> >> > > > indices, instead of the current one.  All the rest will be
> done by
> >> > > > makeinfo.  Am I missing something?
> >> > >
> >> > > Sorry, I assumed that we'd have to check and perhaps update each
> index
> >> > > entry to see that it's in the right category.
> >> >
> >> > No.  We already have separate index categories: see the @kindex,
> >> > @findex, @vindex, etc. directives, in addition to @cindex, that we
> >> > have all over the manual.  It's just that these 4 directives at
> the
> >> > beginning of gdb.texinfo:
> >> >
> >> >   @syncodeindex ky cp
> >> >   @syncodeindex tp cp
> >> >
> >> >   @c readline appendices use @vindex, @findex and @ftable,
> >> >   @c annotate.texi and gdbmi use @findex.
> >> >   @syncodeindex vr cp
> >> >   @syncodeindex fn cp
> >> >
> >> > arrange for all of them to be lumped into a single index "cp"
> (which
> >> > stands for "Concept Index"), and so this directive in the single
> >> > "Index" node we have:
> >> >
> >> >   @printindex cp
> >> >
> >> > prints all of the index entries together.
> >> >
> >> > > Your texinfo foo is better than mine - could you post a patch?
> >> >
> >> > OK.
> >>
> >> Here it is.  Does this solve your problem?
> >>
> >>
> >> Index: gdb.texinfo
> >> ===================================================================
> >> RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
> >> retrieving revision 1.978
> >> diff -u -p -r1.978 gdb.texinfo
> >> --- gdb.texinfo       22 Jun 2012 08:37:49 -0000      1.978
> >> +++ gdb.texinfo       22 Jun 2012 10:01:35 -0000
> >> @@ -18,13 +18,17 @@
> >>  @end iftex
> >>
> >>  @finalout
> >> -@syncodeindex ky cp
> >> -@syncodeindex tp cp
> >> +@c To avoid file-name clashes between index.html and Index.html,
> when
> >> +@c the manual is produced on a Posix host and then moved to a
> >> +@c case-insensitive filesystem (e.g., MS-Windows), we separate the
> >> +@c indices into two: Concept Index and all the rest.
> >> +@syncodeindex ky fn
> >> +@syncodeindex tp fn
> >>
> >>  @c readline appendices use @vindex, @findex and @ftable,
> >>  @c annotate.texi and gdbmi use @findex.
> >> -@syncodeindex vr cp
> >> -@syncodeindex fn cp
> >> +@syncodeindex vr fn
> >> +@syncodeindex fn fn
> >>
> >>  @c !!set GDB manual's edition---not the same as GDB version!
> >>  @c This is updated by GNU Press.
> >> @@ -182,7 +186,9 @@ software in general.  We will miss him.
> >>  * Copying::                  GNU General Public License says
> >>                                  how you can copy and share GDB
> >>  * GNU Free Documentation License::  The license for this
> documentation
> >> -* Index::                       Index
> >> +* Concept Index::               Index of @value{GDBN} concepts
> >> +* Command and Variable Index::  Index of @value{GDBN} commands,
> variables,
> >> +                                  functions, and Python data types
> >>  @end menu
> >>
> >>  @end ifnottex
> >> @@ -1780,8 +1786,9 @@ In addition to @code{help}, you can use
> >>  and @code{show} to inquire about the state of your program, or the
> state
> >>  of @value{GDBN} itself.  Each command supports many topics of
> inquiry; this
> >>  manual introduces each of them in the appropriate context.  The
> listings
> >> -under @code{info} and under @code{show} in the Index point to
> >> -all the sub-commands.  @xref{Index}.
> >> +under @code{info} and under @code{show} in the Command, Variable,
> and
> >> +Function Index point to all the sub-commands.  @xref{Command and
> Variable
> >> +Index}.
> >>
> >>  @c @group
> >>  @table @code
> >> @@ -40415,11 +40422,16 @@ A string in the constant pool is zero-te
> >>  @appendix GNU Free Documentation License
> >>  @include fdl.texi
> >>
> >> -@node Index
> >> -@unnumbered Index
> >> +@node Concept Index
> >> +@unnumbered Concept Index
> >>
> >>  @printindex cp
> >>
> >> +@node Command and Variable Index
> >> +@unnumbered Command, Variable, and Function Index
> >> +
> >> +@printindex fn
> >> +
> >>  @tex
> >>  % I think something like @@colophon should be in texinfo.  In the
> >>  % meantime:
> >>




^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH, doc]: Rename Index node to prevent file collision
       [not found]                             ` <000201cd5f24$1ff8e8c0$5feaba40$%guo@arm.com>
@ 2012-07-12  7:57                               ` Eli Zaretskii
  0 siblings, 0 replies; 23+ messages in thread
From: Eli Zaretskii @ 2012-07-12  7:57 UTC (permalink / raw)
  To: Terry Guo; +Cc: brobecker, joseph, gdb-patches, michael.hope

> From: "Terry Guo" <terry.guo@arm.com>
> Cc: <brobecker@adacore.com>,
> 	<joseph@codesourcery.com>,
> 	<gdb-patches@sourceware.org>,
> 	"'Michael Hope'" <michael.hope@linaro.org>
> Date: Wed, 11 Jul 2012 13:14:59 +0800
> 
> Hi Eli,
> 
> When "make html" for gdbint.texi on case-insensitive Mac OS X, we still meet
> index.html and Index.html issue. Could you please also apply same fix to
> gdbint.texi? Thanks.

Done with the patch below.


2012-07-12  Eli Zaretskii  <eliz@gnu.org>

	* gdbint.texinfo: Remove @syncodeindex directives that put all the
	indices into a single node "Index".  Instead, join function and
	variable indices into a single index, separate from the concept
	index.  Requested in
	http://sourceware.org/ml/gdb-patches/2012-07/msg00146.html.
	(Top): Update the top-level menu: instead of one "Index" there are
	now separate entries "Concept Index" and "Function and Variable
	Index".
	(Concept Index, Function and Variable Index): New nodes.
	(Index): Node deleted.

Index: gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.338
diff -u -r1.338 gdbint.texinfo
--- gdbint.texinfo	15 Jun 2012 09:21:36 -0000	1.338
+++ gdbint.texinfo	12 Jul 2012 07:55:15 -0000
@@ -28,9 +28,7 @@
 @insertcopying
 @end ifnottex
 
-
-@syncodeindex fn cp
-@syncodeindex vr cp
+@syncodeindex vr fn
 
 @titlepage
 @title @value{GDBN} Internals
@@ -93,7 +91,8 @@
 
 * GDB Observers::  @value{GDBN} Currently available observers
 * GNU Free Documentation License::  The license for this documentation
-* Index::
+* Concept Index::
+* Function and Variable Index::
 @end menu
 
 @node Summary
@@ -8132,9 +8131,14 @@
 @appendix GNU Free Documentation License
 @include fdl.texi
 
-@node Index
-@unnumbered Index
+@node Concept Index
+@unnumbered Concept Index
 
 @printindex cp
 
+@node Function and Variable Index
+@unnumbered Function and Variable Index
+
+@printindex fn
+
 @bye


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2012-07-12  7:57 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-14  2:39 [PATCH, doc]: Rename Index node to prevent file collision Michael Hope
2012-06-14 15:06 ` Joseph S. Myers
2012-06-14 16:42   ` Eli Zaretskii
2012-06-14 21:43     ` Michael Hope
2012-06-14 22:01       ` Joel Brobecker
2012-06-14 22:27         ` Michael Hope
2012-06-15  7:44           ` Eli Zaretskii
2012-06-15  7:36         ` Eli Zaretskii
2012-06-15 12:19           ` Joel Brobecker
2012-06-17 23:26           ` Michael Hope
2012-06-18  2:53             ` Eli Zaretskii
2012-06-21  4:20               ` Michael Hope
2012-06-21 16:22                 ` Eli Zaretskii
2012-06-21 22:36                   ` Michael Hope
2012-06-22  5:58                     ` Eli Zaretskii
2012-06-22 10:03                       ` Eli Zaretskii
2012-07-01 19:56                         ` Eli Zaretskii
2012-07-02  1:03                           ` Michael Hope
2012-07-03 16:23                             ` Eli Zaretskii
2012-07-11  5:14                             ` Terry Guo
     [not found]                             ` <000201cd5f24$1ff8e8c0$5feaba40$%guo@arm.com>
2012-07-12  7:57                               ` Eli Zaretskii
2012-06-15  7:29       ` Eli Zaretskii
2012-06-17 23:18         ` Michael Hope

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox