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

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

[elpa] externals/ivy-posframe 1b5db75 145/195: Do not warn when ivy-disp


From: Feng Shu
Subject: [elpa] externals/ivy-posframe 1b5db75 145/195: Do not warn when ivy-display-function is not nil
Date: Sat, 3 Oct 2020 07:12:02 -0400 (EDT)

branch: externals/ivy-posframe
commit 1b5db75834e128c45e5d79e4cc5dc6e78db2fc55
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    Do not warn when ivy-display-function is not nil
---
 ivy-posframe.el | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/ivy-posframe.el b/ivy-posframe.el
index 203674f..2a26eeb 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -519,15 +519,13 @@ selection, non-nil otherwise."
             ([remap ivy-avy] ivy-posframe-avy)
             ([remap swiper-avy] ivy-posframe-swiper-avy))
   (let ((advices ivy-posframe-advice-alist))
-    (if ivy-display-function
-        (message "ivy-posframe: `ivy-display-function' is used, so 
ivy-posframe-mode can not enable.")
-      (if ivy-posframe-mode
-          (mapcar (lambda (elm)
-                    (advice-add (car elm) :around (cdr elm)))
-                  advices)
+    (if ivy-posframe-mode
         (mapcar (lambda (elm)
-                  (advice-remove (car elm) (cdr elm)))
-                advices)))))
+                  (advice-add (car elm) :around (cdr elm)))
+                advices)
+      (mapcar (lambda (elm)
+                (advice-remove (car elm) (cdr elm)))
+              advices))))
 
 ;;;###autoload
 (defun ivy-posframe-enable ()



reply via email to

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