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

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

[elpa] master 55a90c9 152/348: Make with-ivy-window not necessary in act


From: Oleh Krehel
Subject: [elpa] master 55a90c9 152/348: Make with-ivy-window not necessary in action
Date: Sat, 8 Apr 2017 11:03:46 -0400 (EDT)

branch: master
commit 55a90c919411b71f50713e8fa52ae23021ded3bc
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Make with-ivy-window not necessary in action
    
    * ivy.el (ivy-exit-with-action):
    (ivy-call): Wrap `with-ivy-window' around (funcall action).
---
 ivy.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index a3782a9..1c92a7d 100644
--- a/ivy.el
+++ b/ivy.el
@@ -454,7 +454,8 @@ When non-nil, it should contain at least one %d.")
   "Quit the minibuffer and call ACTION afterwards."
   (ivy-set-action
    `(lambda (x)
-      (funcall ',action x)
+      (with-ivy-window
+        (funcall ',action x))
       (ivy-set-action ',(ivy-state-action ivy-last))))
   (setq ivy-exit 'done)
   (exit-minibuffer))
@@ -954,7 +955,7 @@ Example use:
                      ivy-text)
                     (t
                      ivy--current))))
-          (prog1 (funcall action x)
+          (prog1 (with-ivy-window (funcall action x))
             (unless (or (eq ivy-exit 'done)
                         (equal (selected-window)
                                (active-minibuffer-window))



reply via email to

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