[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Missing first index entry
From: |
Gavin Smith |
Subject: |
Re: Missing first index entry |
Date: |
Wed, 9 Mar 2022 18:04:39 +0000 |
On Tue, Feb 22, 2022 at 03:46:36PM +0300, Sergey Matveev wrote:
> run "makeinfo foo.texi" and info ./foo.info says that no indices found
> on "i"/"I" commands. If I rename "My" node to "My Index", then info
> won't note about missing indices. I did not find explicit note about
> that requirement.
I've added a note to the manual of this requirement.
> If I try to search "i foot<Enter>", then it finds "FOOTball" section and
> jumps to it as expected. But "i basket<Enter>" does not find anything.
> However "i basketball<Enter>" works as expected. "I ball<Enter>" shows
> only "football" entry. "I basket<Enter>" does not produce anything.
> "I foot<Enter>" works as expected.
>
> When I tried to find how index entries are found and filled, I was sure
> that index_index variable is properly filled with two ("football",
> "basketball") entries.
I've committed the following fix (commit 730d600e2a):
diff --git a/info/indices.c b/info/indices.c
index 6f5ef8a1f1..f798c61290 100644
--- a/info/indices.c
+++ b/info/indices.c
@@ -338,7 +338,7 @@ next_index_match (FILE_BUFFER *fb, char *string, int
offset, int dir,
if (i < 0 || !index_index[i])
{
- offset = 0;
+ offset = -1;
index_initial = 1;
}
}
@@ -355,7 +355,7 @@ next_index_match (FILE_BUFFER *fb, char *string, int
offset, int dir,
if (i < 0 || !index_index[i])
{
- offset = 0;
+ offset = -1;
index_initial = 0;
index_partial = 1;
}
offset is set to -1 elsewhere in the code to reset/initialise the index
search.
Please feel free to report if you find any other problems with the index
search in Info.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Missing first index entry,
Gavin Smith <=