[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/marginalia fbd898d 087/241: rename marginalia-annotate-
From: |
Stefan Monnier |
Subject: |
[elpa] externals/marginalia fbd898d 087/241: rename marginalia-annotate-command to marginalia-annotate-binding |
Date: |
Fri, 28 May 2021 20:49:02 -0400 (EDT) |
branch: externals/marginalia
commit fbd898d68233d24813a7d7bc9fe8c477ed623382
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
rename marginalia-annotate-command to marginalia-annotate-binding
---
marginalia.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/marginalia.el b/marginalia.el
index 8386480..96375a1 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -143,7 +143,7 @@ only with the annotations that come with Emacs) without
disabling
:group 'marginalia)
(defcustom marginalia-annotators-light
- '((command . marginalia-annotate-command)
+ '((command . marginalia-annotate-binding)
(customize-group . marginalia-annotate-customize-group)
(variable . marginalia-annotate-variable)
(face . marginalia-annotate-face)
@@ -279,24 +279,24 @@ WIDTH is the format width. This can be specified as
alternative to FORMAT."
(marginalia--fields
(str :truncate marginalia-truncate-width :face
'marginalia-documentation))))
-(defvar-local marginalia-annotate-command--hash nil
+(defvar-local marginalia-annotate-binding--hash nil
"Hash table storing the keybinding of every command.
-This hash table is needed to speed up `marginalia-annotate-command'.")
+This hash table is needed to speed up `marginalia-annotate-binding'.")
-(defun marginalia-annotate-command (cand)
+(defun marginalia-annotate-binding (cand)
"Annotate command CAND with keybinding."
(with-current-buffer (window-buffer (minibuffer-selected-window))
;; Precomputing the keybinding of every command is faster than looking it
up every time using
;; `where-is-internal'. `where-is-internal' generates a lot of garbage,
leading to garbage
;; collecting pauses when interacting with the minibuffer. See
;; https://github.com/minad/marginalia/issues/16.
- (unless marginalia-annotate-command--hash
- (setq marginalia-annotate-command--hash (make-hash-table))
+ (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-command--hash))))
+ (puthash sym key marginalia-annotate-binding--hash))))
(when-let* ((sym (intern-soft cand))
- (binding (gethash sym marginalia-annotate-command--hash)))
+ (binding (gethash sym marginalia-annotate-binding--hash)))
(propertize (format " (%s)" (key-description binding)) 'face
'marginalia-key))))
;; This annotator is consult-specific, it will annotate the `consult-buffer'
command.
@@ -373,7 +373,7 @@ a face"
"Annotate symbol CAND with its documentation string."
(when-let (sym (intern-soft cand))
(concat
- (marginalia-annotate-command cand)
+ (marginalia-annotate-binding cand)
(marginalia--fields
((marginalia--symbol-class sym) :face 'marginalia-modified)
((cond
- [elpa] externals/marginalia 3360875 113/241: Rename marginalia-cycle-annotators to marginalia-cycle, (continued)
- [elpa] externals/marginalia 3360875 113/241: Rename marginalia-cycle-annotators to marginalia-cycle, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 1fb2569 121/241: marginalia-annotate-minor-mode: fix support for consult, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 35cb523 127/241: add comment, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia d38a278 151/241: readme: do not export drawers, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 3febe72 155/241: fix #45, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 7d3f018 024/241: Add annotations for files and buffers, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia f083852 066/241: readme: add embark and consult links, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia ef325fc 073/241: In symbol annotator skip lines about advice in function docstring, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia d2a7923 069/241: improve marginalia-annotate-package, do not show nil for builtins, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 6e8ba6d 079/241: add marginalia-annotate-imenu, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia fbd898d 087/241: rename marginalia-annotate-command to marginalia-annotate-binding,
Stefan Monnier <=
- [elpa] externals/marginalia e833584 103/241: improve marginalia-classify-symbol, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 40e2881 112/241: fix marginalia-cycle-annotators such that it works as an embark action, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia b1ccaf8 124/241: readme: more robust selectrum config, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 6a64a59 120/241: marginalia-annotate-minor-mode: add local/global indicator, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 4069094 131/241: get rid of marginalia--buffer-bytes, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 1f2a842 133/241: shorter mode-name, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 18cfe23 136/241: marginalia-annotate-virtual-buffer/marginalia-annotate-minor-mode: no narrow prefix, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 3c80428 141/241: fix #41, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 0641467 144/241: convert readme to org in preparation of info file, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 2a63616 148/241: update texi, Stefan Monnier, 2021/05/28