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

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

[elpa] externals/ivy-explorer 9c080cb 2/3: Guard against older ivy versi


From: Clemens Radermacher
Subject: [elpa] externals/ivy-explorer 9c080cb 2/3: Guard against older ivy versions
Date: Thu, 14 Mar 2019 06:25:32 -0400 (EDT)

branch: externals/ivy-explorer
commit 9c080cb4e6e97f3ca2d108282f78108c2297ba58
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>

    Guard against older ivy versions
---
 ivy-explorer.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ivy-explorer.el b/ivy-explorer.el
index 4be09e7..27801d6 100644
--- a/ivy-explorer.el
+++ b/ivy-explorer.el
@@ -157,8 +157,9 @@ Only the background color is significant."
 
 ;; * Ivy settings
 
-(push '(ivy-explorer--display-function :cleanup ivy-explorer--cleanup)
-      ivy-display-functions-props)
+(when (bound-and-true-p ivy-display-functions-props)
+  (push '(ivy-explorer--display-function :cleanup ivy-explorer--cleanup)
+        ivy-display-functions-props))
 
 (defvar ivy-explorer--posframe-buffer
   " *ivy-explorer-pos-frame-buffer*")
@@ -318,6 +319,8 @@ the menu string as `cdr'."
 (defun ivy-explorer--posframe (msg)
   (unless (require 'posframe nil t)
     (user-error "Posframe library not found"))
+  (unless (bound-and-true-p ivy-display-functions-props)
+    (user-error "Ivy version to old, use melpa version if possible"))
   (with-selected-window (ivy--get-window ivy-last)
     (posframe-show
      ivy-explorer--posframe-buffer



reply via email to

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