From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <83im2vvzzy.fsf@gnu.org> References: <59C3C4DD84434B9B809963933A8889E1@us.oracle.com> <87v96v46gw.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17992"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 3692@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 03 15:29:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lonPI-0004Pf-RW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Jun 2021 15:29:08 +0200 Original-Received: from localhost ([::1]:46420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lonPH-0007PA-Rj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Jun 2021 09:29:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lonPC-0007Oc-Fu for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 09:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59591) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lonPC-0002ZX-99 for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 09:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lonPC-000428-6F for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 09:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jun 2021 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3692 X-GNU-PR-Package: emacs Original-Received: via spool by 3692-submit@debbugs.gnu.org id=B3692.162272693515485 (code B ref 3692); Thu, 03 Jun 2021 13:29:02 +0000 Original-Received: (at 3692) by debbugs.gnu.org; 3 Jun 2021 13:28:55 +0000 Original-Received: from localhost ([127.0.0.1]:42902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lonP4-00041h-Ev for submit@debbugs.gnu.org; Thu, 03 Jun 2021 09:28:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lonP1-00041S-V0 for 3692@debbugs.gnu.org; Thu, 03 Jun 2021 09:28:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42846) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lonOw-0002OR-MU; Thu, 03 Jun 2021 09:28:46 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2879 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lonOu-00019d-So; Thu, 03 Jun 2021 09:28:46 -0400 In-Reply-To: <87v96v46gw.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 03 Jun 2021 11:56:15 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207953 Archived-At: > From: Lars Ingebrigtsen > Date: Thu, 03 Jun 2021 11:56:15 +0200 > Cc: 3692@debbugs.gnu.org > > "Drew Adams" 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 "" 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.