From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12456: 24.2.50; Completion in `Info-goto-node' (cross-manual jump) Date: Tue, 18 Sep 2012 09:23:18 +0300 Message-ID: <83sjaf26jt.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1347949432 627 80.91.229.3 (18 Sep 2012 06:23:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2012 06:23:52 +0000 (UTC) Cc: 12456@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 18 08:23:54 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TDrDs-00074S-6f for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2012 08:23:52 +0200 Original-Received: from localhost ([::1]:55121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDrDo-0004nF-2q for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2012 02:23:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDrDl-0004nA-MG for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 02:23:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDrDk-0005sQ-GL for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 02:23:45 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDrDk-0005sL-Cq for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 02:23:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TDrF0-0002iI-Eq for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 02:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Sep 2012 06:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12456 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12456-submit@debbugs.gnu.org id=B12456.134794947410392 (code B ref 12456); Tue, 18 Sep 2012 06:25:02 +0000 Original-Received: (at 12456) by debbugs.gnu.org; 18 Sep 2012 06:24:34 +0000 Original-Received: from localhost ([127.0.0.1]:40715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDrEY-0002hY-8x for submit@debbugs.gnu.org; Tue, 18 Sep 2012 02:24:34 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:40786) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDrEU-0002hP-Hl for 12456@debbugs.gnu.org; Tue, 18 Sep 2012 02:24:32 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MAJ00600843ZR00@a-mtaout21.012.net.il> for 12456@debbugs.gnu.org; Tue, 18 Sep 2012 09:23:10 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAJ006BR8ELYX80@a-mtaout21.012.net.il>; Tue, 18 Sep 2012 09:23:10 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64539 Archived-At: > From: Stefan Monnier > Date: Mon, 17 Sep 2012 17:12:10 -0400 > Cc: 12456@debbugs.gnu.org > > > Recipe from emacs -Q: C-h r g ( e l i s p ) n n > > When I do it, I see in the echo area the message "[Complete, but not > > unique]", which is wrong, as the elisp manual has no node called (nor > > beggining with) "nn". > > OTOH, if I repeat the experiment but this time with "(elisp)num", > > Emacs says the same message (this time is right), but a second > > produces the message "[No completions]", which is wrong, as there is 3 > > nodes in the elisp manual whose names start with "num". > > IIRC the core of the problem is that Info's completion table does not > (yet) know how to do completion after something like "(elisp)", so it > basically returns some "dummy" completion data (because the way > completion tables are defined currently, they have no way to say "I > don't know"). Can the completion tables say no completion candidates at all? That would be the best short-term solution; the stand-alone Info reader does just that. > So there are 2 ways to fix the above problem: > - Extend minibuffer.el so a completion table return "don't know" (at > which point it could put a message like " [No completion info]"). > - Extend info.el so that it does provide actual completion by opening up > the "elisp" info file and gathering the corresponding node names. The latter sounds like the best long-term solution to me. Of course, next we will see a bug report with "g (eli TAB"...