emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/marginalia 74603c0 091/241: use mapatoms to fix the har


From: Stefan Monnier
Subject: [elpa] externals/marginalia 74603c0 091/241: use mapatoms to fix the harmless unused variable warning
Date: Fri, 28 May 2021 20:49:03 -0400 (EDT)

branch: externals/marginalia
commit 74603c012868a824729d647539ccda137fc71296
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@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))))



reply via email to

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