git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation: Strip texinfo anchors to avoid duplicates

From
Martin von Gagern <martin.vgagern@gmx.net>
Date
Apr 3, 2013, 21:08 UTC
Message-ID
<515C9A52.7020203@gmx.net>
In-Reply-To
<7vppyb4bu3.fsf@alter.siamese.dyndns.org>
On 03.04.2013 22:07, Junio C Hamano wrote:
> I see why duplicates are bad, but does that mean not having any is
> better?

I'd say yes: duplicate anchors cause current versions of texinfo to reject the document outright, and older versions will likely cause a broken interpretation of any anchor names.

What are possible scenarios where anchors could be useful?
a) Internal cross reference. I'm not sure whether texinfo checks for
   broken internal links. If it does, it did not report any.
b) Goto command issued by the user. I suppose most users would be happy
   with node-level navigation, and not use it for navigation to
   sub-node sections.
c) URLs in bookmarks or mails. I suppose people are more likely to use
   the html documents built by asciidoc, instead of a version
   constructed from the texinfo document. So not our issue.
Did I miss a relevant use case?

Automatically (or even manually?) generated unique names might be better than none. But I'm not sure they are worth the trouble.

Martin von Gagern
Previous: Junio C Hamano
Message 3 of 3 in “Documentation: Strip texinfo anchors to avoid duplicates”
  1. Documentation: Strip texinfo anchors to avoid duplicatesMartin von Gagern, Apr 3, 2013
  2. Junio C HamanoApr 3, 2013
  3. Martin von GagernApr 3, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.