From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#47771: 27.1; `Info-read-node-name` throws error during completion Date: Wed, 05 May 2021 16:59:07 +0200 Message-ID: <87zgx94478.fsf@gnus.org> References: <4d2568fb-adad-6f3e-2684-13ec2cc70457@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17712"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47771@debbugs.gnu.org To: Daniel Mendler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 05 17:00:14 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 1leJ0Y-0004TJ-P7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 17:00:14 +0200 Original-Received: from localhost ([::1]:34518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leJ0X-0000cc-SH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 11:00:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leJ0M-0000c2-QJ for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 11:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49242) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leJ0M-0000b2-IW for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 11:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leJ0M-0004m4-Hb for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 11:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 May 2021 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 47771-submit@debbugs.gnu.org id=B47771.162022676018289 (code B ref 47771); Wed, 05 May 2021 15:00:02 +0000 Original-Received: (at 47771) by debbugs.gnu.org; 5 May 2021 14:59:20 +0000 Original-Received: from localhost ([127.0.0.1]:60780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leIzg-0004kv-67 for submit@debbugs.gnu.org; Wed, 05 May 2021 10:59:20 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:37746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leIzd-0004kk-3W for 47771@debbugs.gnu.org; Wed, 05 May 2021 10:59:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ufl1kfKJhQuTqCL2gzKsqObQBpU+QutBTNcZ7C3d7Xw=; b=WZmp6I1iqQOLSWtLoo2N7pMeYP 27zGOH4KRU0Wt5VydD0SJ+zY7phoR5GccZ+HUUcjgqcPg/Tt3QuMBHvsjFIGFmnRfMdD4Ot9l+epW InEUiKTQszPLTz1Jfz0k7RBK60Sx/e7Ariv3bLPuYO9mAwAXtlduMHci2cqh6Lm+YHvg=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1leIzU-0002Vj-6b; Wed, 05 May 2021 16:59:10 +0200 X-Now-Playing: Chrome Hoof's _Pre-Emptive False Rapture_: "Astral Suicide" In-Reply-To: <4d2568fb-adad-6f3e-2684-13ec2cc70457@daniel-mendler.de> (Daniel Mendler's message of "Wed, 14 Apr 2021 14:53:46 +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:205706 Archived-At: Daniel Mendler writes: > 1. M-x icomplete-mode > 2. Press "C-h i" > 3. Press "g" to run `Info-goto-node` > 4. Enter "(boom)" > 5. Move around with the cursor left to right or wait until the > `icomplete-post-command-hook` fails. > > In order to fix the issue, the following patch can be applied: > > diff --git a/info.el b/info-patched.el > index 3bed743..42a7fce 100644 > --- a/info.el > +++ b/info-patched.el > @@ -1881,7 +1881,8 @@ See `completing-read' for a description of > arguments and usage." > (lambda (string pred action) > (complete-with-action > action > - (Info-build-node-completions (Info-find-file file1 nil t)) > + (let ((file2 (Info-find-file file1 'noerror t))) > + (and file2 (Info-build-node-completions file2))) Thanks; applied to Emacs 28 (with some minor changes). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no