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

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

[elpa] externals/ivy-posframe 78ec80f 074/195: ivy-posframe-workable-p -


From: Feng Shu
Subject: [elpa] externals/ivy-posframe 78ec80f 074/195: ivy-posframe-workable-p -> posframe-workable-p
Date: Sat, 3 Oct 2020 07:11:48 -0400 (EDT)

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

    ivy-posframe-workable-p -> posframe-workable-p
---
 ivy-posframe.el | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/ivy-posframe.el b/ivy-posframe.el
index caa8511..c275d71 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -198,7 +198,7 @@ This variable is useful for `ivy-posframe-read-action' .")
 
 (defun ivy-posframe--display (str &optional poshandler)
   "Show STR in ivy's posframe."
-  (if (not (ivy-posframe-workable-p))
+  (if (not (posframe-workable-p))
       (ivy-display-function-fallback str)
     (setq ivy-posframe--display-p t)
     (with-ivy-window
@@ -255,17 +255,10 @@ This variable is useful for `ivy-posframe-read-action' .")
 
 (defun ivy-posframe-cleanup ()
   "Cleanup ivy's posframe."
-  (when (ivy-posframe-workable-p)
+  (when (posframe-workable-p)
     (posframe-hide ivy-posframe-buffer)
     (setq ivy-posframe--display-p nil)))
 
-(defun ivy-posframe-workable-p ()
-  "Test ivy-posframe workable status."
-  (and (>= emacs-major-version 26)
-       (not (or noninteractive
-                emacs-basic-display
-                (not (display-graphic-p))))))
-
 (defun ivy-posframe-dispatching-done ()
   "Select one of the available actions and call `ivy-done'."
   (interactive)



reply via email to

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