unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 3692@debbugs.gnu.org
Subject: bug#3692: 23.0.95; `i' in Info, when in multiple indexes but same target
Date: Thu, 03 Jun 2021 16:28:33 +0300	[thread overview]
Message-ID: <83im2vvzzy.fsf@gnu.org> (raw)
In-Reply-To: <87v96v46gw.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu,  03 Jun 2021 11:56:15 +0200)

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 03 Jun 2021 11:56:15 +0200
> Cc: 3692@debbugs.gnu.org
> 
> "Drew Adams" <drew.adams@oracle.com> writes:
> 
> > When a matching entry is found in more than one index (or more than
> > once in the same index), you get a message such as the following:
> >
> > Found `truncate-lines' in Variable Index.  (2 total; use `,' for next)
> 
> I've now changed this to remove the duplicates in Emacs 28.

I think this change is incorrect, and should be reverted.  An Info
manual cannot possibly have duplicate index entries; if the Texinfo
source does have such duplicate entries, 'makeinfo' will rename them
by appending a numeric "<n>" tail.

The code which was modified tries to look for partial matches to what
the user typed at the 'i's prompt, and that _can_ indeed include
duplicates where what the user typed matches a substring of some index
entry.  But those duplicates cannot be removed, because then Info will
not show all the matches.  For example, in this case the 2 matches are
"truncate-lines" and "toggle-truncate-lines"; with the change just
installed, Emacs shows only one of them, and typing ',' doesn't help
to show the other one.

Going back to the original report:

> When all of the targets are identical, or even when they are in the
> same node, this message is not too helpful. Repeated use of `,' stays
> in the same node.

If this happens, it's a bug in the indexing, not in the Info reader:
similar, let alone identical, index entry in the same node, especially
when they are close to each other, should be avoided.

> On the other hand, it can be helpful to know that the same term is an
> entry in both the Command index and the Variable index (for example).

The response to multiple matches says how many matches it found and
shows the first of them with its node.  Other nodes will be shown when
you type ','.  there isn't enough screen estate in the echo area to
show each match with its node (and I personally think the node in
which you find a match is not very important for the purpose that the
index-search serves).

So I think there's nothing we should do about this bug report, except
being vigilant to patches that introduce similar index entries close
to one another.





  reply	other threads:[~2021-06-03 13:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-26 21:15 bug#3692: 23.0.95; `i' in Info, when in multiple indexes but same target Drew Adams
2021-06-03  9:56 ` Lars Ingebrigtsen
2021-06-03 13:28   ` Eli Zaretskii [this message]
2021-06-04  8:50     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83im2vvzzy.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=3692@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).