[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47771: 27.1; `Info-read-node-name` throws error during completion
From: |
Lars Ingebrigtsen |
Subject: |
bug#47771: 27.1; `Info-read-node-name` throws error during completion |
Date: |
Wed, 05 May 2021 16:59:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Daniel Mendler <mail@daniel-mendler.de> 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
- bug#47771: 27.1; `Info-read-node-name` throws error during completion,
Lars Ingebrigtsen <=