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

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

[elpa] externals/ivy-posframe d15c352 165/195: remove ivy-posframe--pofr


From: Feng Shu
Subject: [elpa] externals/ivy-posframe d15c352 165/195: remove ivy-posframe--poframe-p-advice
Date: Sat, 3 Oct 2020 07:12:06 -0400 (EDT)

branch: externals/ivy-posframe
commit d15c35295815ca5b17df5213f13a5c6896830274
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>

    remove ivy-posframe--poframe-p-advice
---
 ivy-posframe.el | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/ivy-posframe.el b/ivy-posframe.el
index 07e8f4f..53ca92e 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -467,20 +467,6 @@ selection, non-nil otherwise."
 
 ;;; Advice
 
-(defun ivy-posframe--posframe-p-advice (advice-fn &rest args)
-  "Advice function of ADVICE-FN, used to bypass the advice from
-`ivy-posframe-advice-alist' if the posframe cannot be displayed.
-
-ADVICE-FN should be a value from `ivy-posframe-advice-alist', but
-the function only errors if ARGS is empty. There should at least be
-the advised function there (a key from `ivy-posframe-advice-alist')."
-  (unless (< 0 (length args))
-    (error "This function should advise an advice, so args should be at least 
a key from ivy-posframe-advice-alist"))
-  (if (display-graphic-p)
-      (apply advice-fn args)
-    (apply (car args) (cdr args)))
-  )
-
 (defmacro ivy-posframe--defun-advice (name arglist &optional docstring &rest 
body)
   "Define NAME as a `ivy-posframe' advice function.  see `defun'.
 The definition is (lambda ARGLIST [DOCSTRING] BODY...).



reply via email to

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