branch: externals/marginalia
commit e980b562e5b5f6db0851675eb6576d4c4b228540
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    marginalia-annotate-embark-keybinding: Guard against non-symbols (Fix #202)
---
 marginalia.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/marginalia.el b/marginalia.el
index 5d71a9b9db..d2362229ee 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -643,7 +643,8 @@ Similar to `marginalia-annotate-symbol', but does not show 
symbol class."
   "Annotate Embark keybinding CAND with its documentation string.
 Similar to `marginalia-annotate-command', but does not show the
 keybinding since CAND includes it."
-  (when-let* ((cmd (get-text-property 0 'embark-command cand)))
+  (when-let* ((cmd (get-text-property 0 'embark-command cand))
+              ((symbolp cmd)))
     (marginalia--documentation (marginalia--function-doc cmd))))
 
 (defun marginalia-annotate-imenu (cand)

Reply via email to