emacs-diffs
[Top][All Lists]
Advanced

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

master a37da91a09 1/2: Make apropos-print-doc more resilient


From: Lars Ingebrigtsen
Subject: master a37da91a09 1/2: Make apropos-print-doc more resilient
Date: Sun, 23 Jan 2022 09:45:39 -0500 (EST)

branch: master
commit a37da91a092c460384bce2ab16341d4e6ec06a9b
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make apropos-print-doc more resilient
    
    * lisp/apropos.el (apropos-print-doc): Don't bug out on doc
    strings that have invalid command key syntaxes.
---
 lisp/apropos.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/apropos.el b/lisp/apropos.el
index 6ff444f868..f47e70ce5c 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -1276,7 +1276,9 @@ as a heading."
        (cond ((equal doc "")
               (setq doc "(not documented)"))
              (do-keys
-              (setq doc (substitute-command-keys doc))))
+              (setq doc (or (ignore-errors
+                               (substitute-command-keys doc))
+                             doc))))
        (insert doc)
        (if (equal doc "(not documented)")
            (put-text-property opoint (point) 'font-lock-face 'shadow))



reply via email to

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