[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/marginalia ea356ebb1d: marginalia--affixate: Clarify co
From: |
ELPA Syncer |
Subject: |
[elpa] externals/marginalia ea356ebb1d: marginalia--affixate: Clarify comment |
Date: |
Fri, 5 Jan 2024 03:58:13 -0500 (EST) |
branch: externals/marginalia
commit ea356ebb1ddb8d6da78574b517155475cf52d46f
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
marginalia--affixate: Clarify comment
---
marginalia.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/marginalia.el b/marginalia.el
index 4728dfa25d..bea4d118bb 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -1239,10 +1239,12 @@ completion UIs like Vertico or Icomplete."
(defun marginalia--affixate (metadata annotator cands)
"Affixate CANDS given METADATA and Marginalia ANNOTATOR."
- ;; Compute minimum width of windows, which display the minibuffer.
- ;; vertico-buffer displays the minibuffer in different windows. We may want
- ;; to generalize this and detect other types of completion buffers, e.g.,
- ;; Embark Collect or the default completion buffer.
+ ;; Compute minimum width of windows, which display the minibuffer, including
+ ;; the miniwindow. In general the computed width corresponds to the full
+ ;; frame width, since the miniwindow spans the full frame. For example
+ ;; `vertico-buffer' displays the minibuffer in a separate window. Similarly,
+ ;; we could detect other types of completion buffers, e.g., Embark Collect or
+ ;; the default completion buffer, and compute smaller widths.
(let* ((width (cl-loop for win in (get-buffer-window-list) minimize
(window-width win)))
(marginalia-field-width (min (/ width 2) marginalia-field-width))
(marginalia--metadata metadata)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/marginalia ea356ebb1d: marginalia--affixate: Clarify comment,
ELPA Syncer <=