[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe cc64ed6 115/195: extend display-functions-
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe cc64ed6 115/195: extend display-functions-alist to configure-alist |
Date: |
Sat, 3 Oct 2020 07:11:56 -0400 (EDT) |
branch: externals/ivy-posframe
commit cc64ed60aeebb8841603a3505182f65be659c31d
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>
extend display-functions-alist to configure-alist
---
ivy-posframe.el | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index 409a1e0..c18444f 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -121,11 +121,6 @@
:group 'ivy
:prefix "ivy-posframe")
-(defcustom ivy-posframe-display-functions-alist '((t . ivy-posframe-display))
- "The ivy function, display function alist."
- :group 'ivy-posframe
- :type 'sexp)
-
(defcustom ivy-posframe-style 'window-bottom-left
"The style of ivy-posframe."
:group 'ivy-posframe
@@ -173,6 +168,14 @@ When 0, no border is showed."
:group 'ivy-posframe
:type 'string)
+(defcustom ivy-posframe-configure-alist
+ `(,@(when ivy-posframe-height
+ `(ivy-height-alist . ((t . ,ivy-posframe-height))))
+ (ivy-display-functions-alist . ((t . ivy-posframe-display))))
+ "The ivy configuration alist."
+ :group 'ivy-posframe
+ :type 'sexp)
+
(defface ivy-posframe
'((t (:inherit default)))
"Face used by the ivy-posframe."
@@ -466,17 +469,20 @@ selection, non-nil otherwise."
(let ((fncs ivy-posframe-display-function-list)
(advs ivy-posframe-advice-alist)
(keys ivy-posframe-keybind-list)
- (dfns ivy-posframe-display-functions-alist))
+ (configures ivy-posframe-configure-alist))
(if ivy-posframe-mode
(eval
`(progn
- ,@(mapcar (lambda (elm) `(push ',elm ivy-display-functions-alist))
dfns)
+ ,@(mapcan
+ (lambda (conf) (mapcar (lambda (elm) `(push ',elm ,(car conf)))
(cdr conf))) configures)
,@(mapcar (lambda (elm) `(push '(,elm :cleanup
ivy-posframe-cleanup) ivy-display-functions-props)) fncs)
,@(mapcar (lambda (elm) `(advice-add ',(car elm) :around #',(cdr
elm))) advs)
,@(mapcar (lambda (elm) `(define-key ,(nth 0 elm) ,(nth 1 elm)
',(nth 2 elm))) keys)))
(eval
`(progn
- ,@(mapcar (lambda (elm) `(setq ivy-display-functions-alist (delete
',elm ivy-display-functions-alist))) dfns)
+ ,@(mapcan
+ (lambda (conf) (mapcar (lambda (elm) `(setq ,(car conf) (remove
',elm ,(car conf)))) (cdr conf))) configures)
+ ,@(mapcar (lambda (elm) `(setq ivy-display-functions-alist (delete
',elm ivy-display-functions-alist))) configures)
,@(mapcar (lambda (elm) `(push '(,elm :cleanup ignore)
ivy-display-functions-props)) fncs)
,@(mapcar (lambda (elm) `(advice-remove ',(car elm) #',(cdr elm)))
advs)
,@(mapcar (lambda (elm) `(define-key ,(nth 0 elm) ,(nth 1 elm) nil))
keys))))))
- [elpa] externals/ivy-posframe 3433b00 077/195: Merge pull request #29 from CeleritasCelery/recursive-fix, (continued)
- [elpa] externals/ivy-posframe 3433b00 077/195: Merge pull request #29 from CeleritasCelery/recursive-fix, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe d13ad21 111/195: fix argument issue, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 8624418 123/195: add ivy-posframe--display-function-prop advice, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 4e95a48 108/195: fix display function declaration by display-functions-alist, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe d58350c 172/195: make ivy-posframe-buffer as defcustom variable and set setter, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 7f60e8c 112/195: define ivy-posframe-display-function-list, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe c654366 160/195: Merge pull request #51 from conao3/simplify-get-position, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 3df0c29 168/195: Merge pull request #56 from conao3/create-defun-advice, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe f264470 164/195: use ivy-posframe--defun-advice instead of defun, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe a489cd8 131/195: use varid function name, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe cc64ed6 115/195: extend display-functions-alist to configure-alist,
Feng Shu <=
- [elpa] externals/ivy-posframe e500f69 188/195: try and fix issues with posframe, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe d539ac2 195/195: version 0.2.0, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 76456e6 149/195: Merge pull request #46 from tttuuu888/work, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe fd1e40a 113/195: change variable name, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 2cac20d 178/195: Hide minibuffer when posframe workable, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 97337e3 109/195: fix docstring, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9b084b7 174/195: Fix Minibuffer hiding does not work #62, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe ce7505d 171/195: Merge pull request #57 from conao3/fix-warning, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe e76565a 140/195: use (ivy-posframe-mode 1), Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9f6628d 158/195: Add ivy-posframe-size-function #50, Feng Shu, 2020/10/03