[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/marginalia 8969b0a 2/2: Revert "Use current-minibuffer-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/marginalia 8969b0a 2/2: Revert "Use current-minibuffer-command" |
Date: |
Sat, 9 Oct 2021 11:57:21 -0400 (EDT) |
branch: externals/marginalia
commit 8969b0abac6558787d1f752d8c0f8b5bcaab02ed
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Revert "Use current-minibuffer-command"
This reverts commit 098183ec5e82c299dfe87db4feccd513612112db.
---
marginalia.el | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/marginalia.el b/marginalia.el
index 539fe1d..e931827 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -1023,13 +1023,7 @@ PROP is the property which is looked up."
(defun marginalia--minibuffer-setup ()
"Setup the minibuffer for Marginalia.
Remember `this-command' for `marginalia-classify-by-command-name'."
- (setq marginalia--cache t
- ;; On Emacs 28, current-minibuffer-command is better than this-command.
- ;; It is consistent if a command prompts multiple times.
- marginalia--command
- (if (boundp 'current-minibuffer-command)
- current-minibuffer-command
- this-command))
+ (setq marginalia--cache t marginalia--command this-command)
;; Reset cache if window size changes, recompute alignment
(add-hook 'window-state-change-hook #'marginalia--cache-reset nil 'local)
(marginalia--cache-reset))