bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with info and indices


From: Gavin Smith
Subject: Re: problem with info and indices
Date: Sun, 10 Apr 2022 19:45:22 +0100

On Sun, Apr 10, 2022 at 06:16:29PM +0000, Werner LEMBERG wrote:
> 
> [texinfo a77151c624c0 from April 10th]
> 
> In `info.info`, section 'Index Commands', there is the following text.
> 
>      The most efficient means of finding something quickly in a manual
>   is the ‘i’ command (‘index-search’).  This command prompts for a
>   string, and then looks for that string in all the indices of the
>   current Info manual.  If it finds a matching index entry, it
>   displays the node to which that entry refers and prints the full
>   text of the entry in the echo area.
> 
> Currently, this is not true.  If you process the attached file with
> `makeinfo`, then calling
> 
> ```
> info -f info-index.info
> ```
> 
> and pressing the 'i' key, you get
> 
> ```
> No indices found
> ```

Yes, the index is not found because it is not in a node with the
string "Index" in its name.  This may not be the best behaviour but it
is the way that it has always worked, to my knowledge.

Somebody else had the same problem recently and we added a note to the
manual about this requirement on 2022-03-09.

It would be possible to fix by scanning the entire Info file for the
special marker that marks indices.  This may have been too slow twenty
or thirty years ago, but would not be too slow now, I expect.  Somebody
would have to take the time to implement this.

> 
> Either the documentation is wrong, or the implementation :-)
> 
> 
>     Werner

> \input texinfo.tex
> 
> @ifnottex
> @node Top
> @end ifnottex
> 
> 
> @defun foo
> text
> @end defun
> 
> @defmac bar
> text
> @end defmac
> 
> @printindex fn
> 
> @bye




reply via email to

[Prev in Thread] Current Thread [Next in Thread]