GNU bug report logs - #3692
23.0.95; `i' in Info, when in multiple indexes but same target

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Fri, 26 Jun 2009 21:50:04 UTC

Severity: wishlist

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3692 in the body.
You can then email your comments to 3692 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3692; Package emacs. (Fri, 26 Jun 2009 21:50:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 26 Jun 2009 21:50:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <emacs-pretest-bug <at> gnu.org>
Subject: 23.0.95; `i' in Info, when in multiple indexes but same target
Date: Fri, 26 Jun 2009 14:15:06 -0700
emacs -Q
C-h r
i truncate-lines
,
,
 
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)
 
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.
 
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).
 
It would be good if this behavior could be improved a bit, so that
equivalent targets are filtered in some way, and that you are told
when they are entered in different indexes. I don't have a great idea
about the best way to do that. I just notice that the help that is
given is not as helpful as it might be. So I guess this is a feature
request.

In GNU Emacs 23.0.95.1 (i386-mingw-nt5.1.2600) of 2009-06-19 on
 SOFT-MJASON Windowing system distributor `Microsoft Corp.', version
 5.1.2600 configured using `configure --with-gcc (3.4)'
 




Severity set to 'wishlist' from 'normal' Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 17 Sep 2011 06:32:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3692; Package emacs. (Thu, 03 Jun 2021 09:57:02 GMT) Full text and rfc822 format available.

Message #10 received at 3692 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 3692 <at> debbugs.gnu.org
Subject: Re: bug#3692: 23.0.95; `i' in Info, when in multiple indexes but
 same target
Date: Thu, 03 Jun 2021 11:56:15 +0200
"Drew Adams" <drew.adams <at> 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.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 28.1, send any further explanations to 3692 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 03 Jun 2021 09:57:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3692; Package emacs. (Thu, 03 Jun 2021 13:29:02 GMT) Full text and rfc822 format available.

Message #15 received at 3692 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 3692 <at> debbugs.gnu.org, drew.adams <at> oracle.com
Subject: Re: bug#3692: 23.0.95;
 `i' in Info, when in multiple indexes but same target
Date: Thu, 03 Jun 2021 16:28:33 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Thu, 03 Jun 2021 11:56:15 +0200
> Cc: 3692 <at> debbugs.gnu.org
> 
> "Drew Adams" <drew.adams <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3692; Package emacs. (Fri, 04 Jun 2021 08:51:02 GMT) Full text and rfc822 format available.

Message #18 received at 3692 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 3692 <at> debbugs.gnu.org, drew.adams <at> oracle.com
Subject: Re: bug#3692: 23.0.95; `i' in Info, when in multiple indexes but
 same target
Date: Fri, 04 Jun 2021 10:50:16 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> 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.

Ah; I didn't notice that the `i' command was finding two different
things on the same line.

I've reverted the patch now.

> 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.

Yup; closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 02 Jul 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.