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

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

[elpa] externals/marginalia 472b47a 041/241: add comment to marginalia-t


From: Stefan Monnier
Subject: [elpa] externals/marginalia 472b47a 041/241: add comment to marginalia-toggle-annotators
Date: Fri, 28 May 2021 20:48:53 -0400 (EDT)

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

    add comment to marginalia-toggle-annotators
---
 marginalia.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/marginalia.el b/marginalia.el
index f1900a4..675f19a 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -411,6 +411,11 @@ Remember `this-command' for annotation."
     ;; Replace the metadata function.
     (advice-add #'completion-metadata-get :before-until 
#'marginalia--completion-metadata-get)))
 
+;; If you want to toggle between annotators while being in the minibuffer, the 
completion-system
+;; should refresh the candidate list. Currently there is no support for this 
in marginalia, but it
+;; is possible to advice the `marginalia-toggle-annotators' function with the 
necessary refreshing
+;; logic. See the discussion in https://github.com/minad/marginalia/issues/10 
for reference.
+;;;###autoload
 (defun marginalia-toggle-annotators ()
   "Toggle between annotators in `marginalia-annotators'."
   (interactive)



reply via email to

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