[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe dddbd8b 139/195: Remove ivy-posframe-displ
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe dddbd8b 139/195: Remove ivy-posframe-display-function-list |
Date: |
Sat, 3 Oct 2020 07:12:01 -0400 (EDT) |
branch: externals/ivy-posframe
commit dddbd8b89bd1e17d65d28f2cc30ea1b21a5a379b
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Remove ivy-posframe-display-function-list
---
ivy-posframe.el | 26 ++++++++++++--------------
1 file changed, 12 insertions(+), 14 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index 96ef2e0..bedd226 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -136,7 +136,7 @@
;; #+BEGIN_EXAMPLE
;; (defun ivy-posframe-display-at-XXX (str)
;; (ivy-posframe--display str #'your-own-poshandler-function))
-;; (push 'ivy-posframe-display-at-XXX ivy-posframe-display-function-list) ;
This line is needed.
+;; (push 'ivy-posframe-display-at-XXX
ivy-posframe-additional-display-functions) ; This line is needed.
;; (ivy-posframe-mode t) ; This line is needed.
;; #+END_EXAMPLE
@@ -292,14 +292,6 @@ This variable is useful for `ivy-posframe-read-action' .")
(defun ivy-posframe-display-at-point (str)
(ivy-posframe--display str #'posframe-poshandler-point-bottom-left-corner))
-(defvar ivy-posframe-display-function-list '(ivy-posframe-display
-
ivy-posframe-display-at-window-center
-
ivy-posframe-display-at-frame-center
-
ivy-posframe-display-at-window-bottom-left
-
ivy-posframe-display-at-frame-bottom-left
-
ivy-posframe-display-at-frame-bottom-window-center
- ivy-posframe-display-at-point))
-
(defun ivy-posframe-cleanup ()
"Cleanup ivy's posframe."
(when (posframe-workable-p)
@@ -455,9 +447,6 @@ selection, non-nil otherwise."
;;; Variables
-(defvar ivy-posframe-display-function-list
- (append ivy-posframe-additional-display-functions
ivy-posframe-display-function-list))
-
(defvar ivy-posframe-advice-alist
'((ivy--minibuffer-setup . ivy-posframe--minibuffer-setup)
(ivy--queue-exhibit . ivy-posframe--add-prompt)
@@ -499,8 +488,17 @@ selection, non-nil otherwise."
"Around advice of FN with ARGS."
(let ((ivy-display-functions-props
(append ivy-display-functions-props
- (mapcar (lambda (elm) `(,elm :cleanup ivy-posframe-cleanup))
- ivy-posframe-display-function-list))))
+ (mapcar
+ (lambda (elm)
+ `(,elm :cleanup ivy-posframe-cleanup))
+ `(,@ivy-posframe-additional-display-functions
+ ivy-posframe-display
+ ivy-posframe-display-at-window-center
+ ivy-posframe-display-at-frame-center
+ ivy-posframe-display-at-window-bottom-left
+ ivy-posframe-display-at-frame-bottom-left
+ ivy-posframe-display-at-frame-bottom-window-center
+ ivy-posframe-display-at-point)))))
(apply fn args)))
(defun ivy-posframe--height (fn &rest args)
- [elpa] externals/ivy-posframe 0a870c1 080/195: Remove top-level ivy-posframe setup function executing, (continued)
- [elpa] externals/ivy-posframe 0a870c1 080/195: Remove top-level ivy-posframe setup function executing, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 38aff80 084/195: Add ivy-posframe-demo, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 13180ce 087/195: Merge pull request #35 from conao3/fix-minibuffer-issue, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe ba1bc4f 092/195: Update prompt in dynamic collections, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 233a3ec 070/195: Fix Strange behaviour #25, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 1297ebc 078/195: Fix focus can go out of frame with multi line collections #31, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9e01129 083/195: Remove ivy-posframe-setup, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe b1ecab7 096/195: Merge pull request #42 from tttuuu888/work, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 0a8cb5a 101/195: fix advice function style, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 441c1bf 150/195: Fix First line disappears with the specific condition. #47, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe dddbd8b 139/195: Remove ivy-posframe-display-function-list,
Feng Shu <=
- [elpa] externals/ivy-posframe b6afaf7 129/195: generate, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 19cc919 110/195: use function-alist instead of display-functions, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe ca2b6db 106/195: add disable mode code, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe e27b2b7 141/195: Remove ivy-posframe-additional-display-functions, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe b23cd5c 133/195: remove eval form, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 0032ed4 130/195: define define-display-function macro instead of eval form, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 36cae42 102/195: use ivy-posframe-advice-alist to apply advice, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe f032c58 124/195: remove overwrite ivy variable code, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9dcdd80 121/195: add ivy--height advice, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 7567182 136/195: let ivy-posframe-enable = (ivy-posframe-mode 1), Feng Shu, 2020/10/03