[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra 98c61de 299/395: ivy.el (ivy-set-display-tran
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra 98c61de 299/395: ivy.el (ivy-set-display-transformer): Mark obsolete |
Date: |
Thu, 25 Feb 2021 08:32:24 -0500 (EST) |
branch: externals/ivy-hydra
commit 98c61dec812c3a3f227e71a59e004d2d90593130
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
ivy.el (ivy-set-display-transformer): Mark obsolete
Use `ivy-configure' :display-transformer-fn instead.
* ivy.el (ivy--display-transformers-alist): Rename.
* targets/obsolete-config.el: Update.
---
ivy.el | 10 +++++-----
targets/obsolete-config.el | 1 +
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/ivy.el b/ivy.el
index 9d2640d..ac8e133 100644
--- a/ivy.el
+++ b/ivy.el
@@ -228,7 +228,7 @@ PROMPT-FN is a function of no arguments that returns a
prompt string."
(setq ivy--prompts-list
(plist-put ivy--prompts-list caller prompt-fn)))
-(defvar ivy--display-transformers-list nil
+(defvar ivy--display-transformers-alist nil
"A list of str->str transformers per command.")
(defun ivy-set-display-transformer (cmd transformer)
@@ -240,8 +240,8 @@ plus some extra information.
This lambda is called only on the `ivy-height' candidates that
are about to be displayed, not on the whole collection."
- (setq ivy--display-transformers-list
- (plist-put ivy--display-transformers-list cmd transformer)))
+ (declare (obsolete "Use `ivy-configure' :display-transformer-fn"
"<2020-05-20 Wed>"))
+ (ivy--alist-set 'ivy--display-transformers-alist cmd transformer))
(defvar ivy--sources-list nil
"A list of extra sources per command.")
@@ -1888,7 +1888,7 @@ An :init is a function with no arguments.
(when display-fn
(ivy--alist-set 'ivy-display-functions-alist caller display-fn))
(when display-transformer-fn
- (ivy-set-display-transformer caller display-transformer-fn))
+ (ivy--alist-set 'ivy--display-transformers-alist caller
display-transformer-fn))
(when alt-done-fn
(ivy--alist-set 'ivy-alt-done-functions-alist caller alt-done-fn))
(when more-chars
@@ -2088,7 +2088,7 @@ customizations apply to the current completion session."
:re-builder re-builder
:matcher matcher
:dynamic-collection dynamic-collection
- :display-transformer-fn (plist-get ivy--display-transformers-list
caller)
+ :display-transformer-fn (ivy-alist-setting
ivy--display-transformers-alist caller)
:directory default-directory
:extra-props extra-props
:caller caller
diff --git a/targets/obsolete-config.el b/targets/obsolete-config.el
index d38c7da..3e8b783 100644
--- a/targets/obsolete-config.el
+++ b/targets/obsolete-config.el
@@ -1,3 +1,4 @@
(add-to-list 'load-path default-directory)
(require 'counsel)
+(ivy-set-display-transformer 'ivy-switch-buffer 'ivy-switch-buffer-transformer)
(byte-compile-file (expand-file-name "targets/obsolete-config.el"))
- [elpa] externals/ivy-hydra fb8804d 280/395: ivy.el (ivy--call-marked): Extract, (continued)
- [elpa] externals/ivy-hydra fb8804d 280/395: ivy.el (ivy--call-marked): Extract, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 489bc57 284/395: counsel.el (counsel-rg-base-command): Make the default a list, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7fd0662 285/395: counsel.el (counsel-grep-like-occur): Fix for marked files in dired, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f1c57a1 292/395: counsel.el (counsel-async-command-delay): Set the default to 0.0, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra fb73bfe 288/395: counsel.el (counsel--rg-targets): Fix regression, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 2b26f83 289/395: counsel.el (counsel--sync-sentinel-on-exit): Don't reset index, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6a576cb 293/395: ivy-avy.el: Extract, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra e42e0b3 295/395: ivy-hydra.el (ivy-minibuffer-grow): Move, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 9fddf44 297/395: ivy-faces.el: Extract, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a33af9b 356/395: Unset yank-undo-function in counsel-yank-pop, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 98c61de 299/395: ivy.el (ivy-set-display-transformer): Mark obsolete,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra 177d7e0 325/395: Fix definition of ‘counsel--browse-history’., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a877961 330/395: ivy.el (ivy-call): Don't modify default-directory, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 39ede5f 324/395: targets/plain.el: Require ivy-avy, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d951004 336/395: doc: Conflate installation description, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 3a2c5b2 300/395: counsel.el: Mark obsolete the functions that can be replaced by complete-symbol, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 3ecf828 344/395: ivy.el (ivy-switch-buffer): Don't lose the current index, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 01d9f55 343/395: ivy.el: Fix minibuffer highlighter selction, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d4fd99f 316/395: Respect original default choice when deduplicating extra actions, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 62815d9 311/395: Makefile: Compile ivy-avy.el, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7c0796f 333/395: ivy.el (ivy-shrink-after-dispatching): Resize only when in minibuffer, Basil L. Contovounesios, 2021/02/25