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

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

[elpa] externals/marginalia a6dfb38 003/241: add todos


From: Stefan Monnier
Subject: [elpa] externals/marginalia a6dfb38 003/241: add todos
Date: Fri, 28 May 2021 20:48:45 -0400 (EDT)

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

    add todos
---
 marginalia.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/marginalia.el b/marginalia.el
index c1c08a4..68130d9 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -229,6 +229,12 @@ PROP is the property which is looked up."
   "Setup minibuffer for `marginalia-mode'.
 Remember `this-command' for annotation and replace highlighting function."
   (setq-local marginalia--this-command this-command)
+  ;; TODO we use selectrum-highlight-candidates-function here because 
annotation faces
+  ;; are overwritten if we use the Emacs annotation-function with selectrum is 
used.
+  ;; While this is consistent with the behavior of the Completions buffer, it 
is not
+  ;; what I want e.g. for marginalia-annotate-face!
+  ;; How to proceed?
+  ;; See https://github.com/raxod502/selectrum/pull/249
   (when (boundp 'selectrum-highlight-candidates-function)
     (let ((orig selectrum-highlight-candidates-function))
       (setq-local selectrum-highlight-candidates-function
@@ -265,6 +271,7 @@ Remember `this-command' for annotation and replace 
highlighting function."
     ;; https://github.com/oantolin/icomplete-vertical/issues/16
     (advice-add #'completion-metadata-get :around 
#'marginalia--completion-metadata-get)))
 
+;; TODO better name? there is also the name clash problem with 
marginalia-annotate-command
 ;;;###autoload
 (defun marginalia-command-annotate (cmd ann)
   "Modify marginalia configuration such that annotation function ANN is used 
for command CMD."



reply via email to

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