branch: externals/ivy-posframe commit 1b5db75834e128c45e5d79e4cc5dc6e78db2fc55 Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@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 ()