[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra 71c59ae 377/395: ivy.el (ivy--format-minibuff
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra 71c59ae 377/395: ivy.el (ivy--format-minibuffer-line): Check for annotation-function in one more place |
Date: |
Thu, 25 Feb 2021 08:32:42 -0500 (EST) |
branch: externals/ivy-hydra
commit 71c59aecf669142ebe264fac8ff7b440c0c71712
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
ivy.el (ivy--format-minibuffer-line): Check for annotation-function in one
more place
---
ivy.el | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/ivy.el b/ivy.el
index 00f56a3..feecf74 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3284,10 +3284,14 @@ The function was added in Emacs 26.1.")
"~"
home)))))
+(defvar ivy--minibuffer-metadata nil)
+
(defun ivy-update-candidates (cands)
- (ivy--insert-minibuffer
- (ivy--format
- (setq ivy--all-candidates cands))))
+ (let ((ivy--minibuffer-metadata
+ (completion-metadata "" minibuffer-completion-table
minibuffer-completion-predicate)))
+ (ivy--insert-minibuffer
+ (ivy--format
+ (setq ivy--all-candidates cands)))))
(defun ivy--exhibit ()
"Insert Ivy completions display.
@@ -4030,7 +4034,8 @@ in this case."
(funcall ivy--highlight-function str))
str))
(olen (length str))
- (annot (plist-get completion-extra-properties :annotation-function)))
+ (annot (or (completion-metadata-get ivy--minibuffer-metadata
'annotation-function)
+ (plist-get completion-extra-properties
:annotation-function))))
(add-text-properties
0 olen
'(mouse-face
- [elpa] externals/ivy-hydra 8d840b2 317/395: counsel.el (counsel-find-file-undo): Undo changing current directory, (continued)
- [elpa] externals/ivy-hydra 8d840b2 317/395: counsel.el (counsel-find-file-undo): Undo changing current directory, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 9bb6841 347/395: counsel.el (counsel-highlight-with-face): Fix preselect on next call, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra dd9c88f 319/395: ivy-avy.el: Fix package-lint warnings, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 544e7de 314/395: ivy.el (ivy-completing-read): Work better with find-file-at-point, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 4f98f97 332/395: targets/plain.el: Install avy automatically, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6a22192 360/395: ivy.el (ivy--highlight-default): Use match faces consistently, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f8b1ab8 328/395: Minor fixes for recent additions, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra dd43ab1 346/395: Add Emacs 27 executable-find compatibility shim, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra c76d797 370/395: Clean up some stuff around counsel-locate, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 34a203f 374/395: counsel.el: Add prompt param to counsel-mark--ivy-read, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 71c59ae 377/395: ivy.el (ivy--format-minibuffer-line): Check for annotation-function in one more place,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra 80101ca 383/395: counsel.el (counsel-ag-function): User switches override -i/-s, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra e0374dc 385/395: Support empty isearch in swiper-from-isearch, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1477144 391/395: * .gitignore: Anchor ELPA files at project root., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 63f1af0 392/395: * doc/scripts.el: Add copyright to tame the checking script, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d47e354 393/395: Update copyright notices for 2021, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 65f5783 395/395: Select files relevant for the ivy-hydra package, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 968eea5 057/395: ivy.el (ivy-partial-or-done): Check if completion-cycle-threshold is a number, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 9619e3c 340/395: counsel.el (counsel-compile-get-make-help-invocations): new helper, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 066ed7b 362/395: Added pretty counsel-linux-app-format-function, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 764b978 378/395: Revert last change to ivy-update-candidates, Basil L. Contovounesios, 2021/02/25