emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master a9f4ee3 2/2: Don't bug out in `Info-goto-node' completion


From: Lars Ingebrigtsen
Subject: master a9f4ee3 2/2: Don't bug out in `Info-goto-node' completion
Date: Wed, 5 May 2021 10:59:31 -0400 (EDT)

branch: master
commit a9f4ee3d3d69a91fde905684e5e9838a18ab855c
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 82f0eb3..67d27c7 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]