[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
address@hidden: info-lookup-symbol]
From: |
Eli Zaretskii |
Subject: |
address@hidden: info-lookup-symbol] |
Date: |
Mon, 09 Apr 2007 10:32:14 +0300 |
The message below was posted to help-gnu-emacs.
The problem here is that makeinfo disambiguates identical index entry
in a way that leaves the entries qualified with <N> first in the menu
it generates for the Index nodes. The relevant excerpt from index.c
is this:
/* Fix entry names which are the same. They point to different nodes,
so we make the entry name unique. */
if (copy[i+1]
&& STREQ (copy[i]->entry, copy[i + 1]->entry)
&& !html)
{
char *new_entry_name;
new_entry_name = xmalloc (10 + strlen (copy[i]->entry));
sprintf (new_entry_name, "%s <%d>", copy[i]->entry, counter);
free (copy[i]->entry);
copy[i]->entry = new_entry_name;
counter++;
}
How about if we change this to modify copy[i+1]->entry instead of
copy[i]->entry?
(The real solution to the problem described below is to fix the
offending manual not to have identical index entries, but that's
outside of Texinfo's control.)
------- Start of forwarded message -------
X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed
version=3.1.0
From: Rehceb Rotkiv <address@hidden>
Date: Sun, 08 Apr 2007 18:07:07 -0500
To: address@hidden
Subject: info-lookup-symbol
Hello,
when I use info-lookup-symbol, I sometimes get to the wrong place in the
info file. For example, when I use info-lookup-symbol on the keyword
"break" in a Python source code file, it takes me to the index item
* break <1>: try statement.
instead of
* break: break statement.
probably because (strangely) the first appears before the latter in the
index of the info file. How can I avoid this? Is it, for example,
possible, to get a summary of all index items that contain "break"
instead of directly jumping to the first one? Also, how does Emacs know
in which index file to look / how can I customize it?
Regards,
Rehceb Rotkiv
_______________________________________________
help-gnu-emacs mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
------- End of forwarded message -------
- address@hidden: info-lookup-symbol],
Eli Zaretskii <=