GNU bug report logs -
#20365
24.5; all-completions returns duplicates for Info-read-node-name-1
Previous Next
Reported by: Oleh Krehel <ohwoeowho <at> gmail.com>
Date: Sat, 18 Apr 2015 16:17:02 UTC
Severity: minor
Found in version 24.5
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 20365 <at> debbugs.gnu.org (full text, mbox):
Just a first comment: it's not considered incorrect for
`all-completions' to return a list with duplicate entries in it.
More specifically, it's considered the completion UI's job to remove
those duplicates.
> (setq x (all-completions "(" 'Info-read-node-name-1))
> x will contain many duplicates for each node, like "org" "org" "org"
> "org" "org.info.gz" "org" "org.info.gz" "org" "org.info.gz".
Maybe the way these entries are generated could be reviewed to try and
reduce the number of duplicates. And we could call `delete-dups' on the
result: while a completion-table shouldn't need to go out of its way to
reduce the number of duplicates (since the UI is supposed to handle it
anyway), it's probably good to avoid having such expected large number of
duplicates, indeed.
> Finally, if one of the elements of `all-completions' is passed, it still
> doesn't work.
What does "is passed" mean here? What does "doesn't work" mean here?
> I'm guessing that it expects "(org)" instead of "org", but
> then why not offer these on the completion list?
What is "it"?
Stefan
This bug report was last modified 3 years and 90 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.