From a9f4ee3d3d69a91fde905684e5e9838a18ab855c Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Wed, 5 May 2021 16:58:35 +0200 Subject: [PATCH] Don't bug out in `Info-goto-node' completion * lisp/info.el (Info-read-node-name-1): Don't bug out in the middle of completion, but return nil instead (and issue a message) (bug#47771). --- lisp/info.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/info.el b/lisp/info.el index 82f0eb37ae9..67d27c78988 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -1855,7 +1855,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)) + (when-let ((file2 (Info-find-file file1 'noerror t))) + (Info-build-node-completions file2)) string pred)) nodename predicate code)))) ;; Otherwise use Info-read-node-completion-table. -- 2.39.2