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

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

[elpa] externals/marginalia 54a61c7 137/241: update marginalia comment


From: Stefan Monnier
Subject: [elpa] externals/marginalia 54a61c7 137/241: update marginalia comment
Date: Fri, 28 May 2021 20:49:13 -0400 (EDT)

branch: externals/marginalia
commit 54a61c728a45588af5aed783066ff95568c0562e
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    update marginalia comment
---
 marginalia.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/marginalia.el b/marginalia.el
index bc89df7..7bde8d0 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -606,15 +606,14 @@ looking for a regexp that matches the prompt."
              when (string-match-p regexp prompt)
              return category)))
 
-;; We generally run the annotators in the original window.
-;; `with-selected-window' is necessary because of 
`lookup-minor-mode-from-indicator'.
-;; Otherwise it would probably suffice to only change the current buffer.
 (defmacro marginalia--context (&rest body)
   "Setup annotator context around BODY."
   (let ((w (make-symbol "w")))
     ;; Take the window width of the current window (minibuffer window!)
     `(let ((,w (window-width)))
-       ;; Switch to the originally selected window before entering the 
minibuffer
+       ;; We generally run the annotators in the original window.
+       ;; `with-selected-window' is necessary because of 
`lookup-minor-mode-from-indicator'.
+       ;; Otherwise it would probably suffice to only change the current 
buffer.
        ;; We need the `selected-window' fallback for Embark Occur.
        (with-selected-window (or (minibuffer-selected-window) 
(selected-window))
          (let ((marginalia-truncate-width (min (/ ,w 2) 
marginalia-truncate-width))



reply via email to

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