branch: externals/marginalia commit 74603c012868a824729d647539ccda137fc71296 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
use mapatoms to fix the harmless unused variable warning --- marginalia.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/marginalia.el b/marginalia.el index 6686b4b..7d74302 100644 --- a/marginalia.el +++ b/marginalia.el @@ -269,9 +269,9 @@ This hash table is needed to speed up `marginalia-annotate-binding'.") ;; https://github.com/minad/marginalia/issues/16. (unless marginalia-annotate-binding--hash (setq marginalia-annotate-binding--hash (make-hash-table)) - (cl-do-all-symbols (sym) - (when-let (key (and (commandp sym) (where-is-internal sym nil t))) - (puthash sym key marginalia-annotate-binding--hash)))) + (mapatoms (lambda (sym) + (when-let (key (and (commandp sym) (where-is-internal sym nil t))) + (puthash sym key marginalia-annotate-binding--hash))))) (when-let* ((sym (intern-soft cand)) (binding (gethash sym marginalia-annotate-binding--hash))) (propertize (format " (%s)" (key-description binding)) 'face 'marginalia-key))))