]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't bug out in `Info-goto-node' completion
authorDaniel Mendler <mail@daniel-mendler.de>
Wed, 5 May 2021 14:58:35 +0000 (16:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 5 May 2021 14:58:35 +0000 (16:58 +0200)
* 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

index 82f0eb37ae9228e3aba3c650e5084adaca693b64..67d27c789884d7867c2033fe5baf383745b92389 100644 (file)
@@ -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.