[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra 4235010 387/395: Re-revert last change to ivy
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra 4235010 387/395: Re-revert last change to ivy-update-candidates |
Date: |
Thu, 25 Feb 2021 08:32:44 -0500 (EST) |
branch: externals/ivy-hydra
commit 4235010d2aaba907c7dceb48f09e5edfde1058c0
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Re-revert last change to ivy-update-candidates
This mostly reverts commit 764b978759e68cd3bd42eb69ed4698e2948c7d4e
"Revert last change to ivy-update-candidates", which in turn
reverted commit 71c59aecf669142ebe264fac8ff7b440c0c71712
"ivy.el (ivy--format-minibuffer-line): Check for annotation-function
in one more place".
But this commit should fix the original one for dynamic collections.
* ivy.el (ivy--minibuffer-metadata): Reinstate.
(ivy-update-candidates): Don't set ivy--minibuffer-metadata for
dynamic collections. Suggested by by Nikita Bloshchanevich
<nikblos@outlook.com>.
(ivy--format-minibuffer-line): Check for annotation-function in
ivy--minibuffer-metadata again.
Re: #2780.
Closes #2783.
---
ivy.el | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/ivy.el b/ivy.el
index 2c670e6..4bfc102 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3286,10 +3286,16 @@ 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
+ (unless (ivy-state-dynamic-collection ivy-last)
+ (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.
@@ -4032,7 +4038,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 c83f6bc 088/395: ivy.el (ivy-call): Don't modify ivy-marked-candidates, (continued)
- [elpa] externals/ivy-hydra c83f6bc 088/395: ivy.el (ivy-call): Don't modify ivy-marked-candidates, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra baac6e1 090/395: swiper.el (swiper--re-builder): Fix "^$" for swiper, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra cdd3995 100/395: ivy.el (ivy--buffer-list): Avoid unnecessarily touching remote connections, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 69fedaa 098/395: counsel.el (counsel-esh-history, counsel-shell-history): Set indices, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 32019df 102/395: ivy.el (ivy-read-action-by-key): Allow to read e.g. C-d, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6941b8a 214/395: Revert ".dir-locals.el (outline-regexp): "^(" is not an outline start", Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 93929ec 257/395: * ivy.el (ivy--shorter-matches-first): Simplify, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1b6f3cf 244/395: Improve ivy-switch-buffer-transformer, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 68ce6e6 384/395: Mention caveats for non-exiting commands in manual, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1deef76 394/395: Bump version to point release 0.13.2, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 4235010 387/395: Re-revert last change to ivy-update-candidates,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra d8ed11e 388/395: Make ivy-switch-buffer-kill respect current predicate, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra c1a61dc 084/395: ivy-test.el (ivy-empty-directory-open): Test opening empty directory, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 316d4dd 232/395: counsel-kmacro: Create actions for cycling the ring and setting a saved counter value., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 38c90e8 196/395: ivy.el (ivy-switch-buffer-transformer): Move ivy-remote logic here, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra fff899a 237/395: counsel.el (counsel--sync-sentinel-on-exit): Try not to reset index to 0, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a2c86c0 273/395: ivy.el (ivy-completion-in-region): Fixup, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra da0b272 281/395: ivy.el (ivy--call-marked): Handle alists, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a37ec22 279/395: Revert "ivy.el (ivy--update-minibuffer): don't filter while there's input", Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 05d892d 282/395: counsel-grep/ag/rg/pt: use subprocess instead of shell command, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra b173441 326/395: Fix for ivy-immediate-done with counsel-M-x, Basil L. Contovounesios, 2021/02/25