[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe 83657be 114/195: add display-functions-ali
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe 83657be 114/195: add display-functions-alist to restore ivy variable |
Date: |
Sat, 3 Oct 2020 07:11:56 -0400 (EDT) |
branch: externals/ivy-posframe
commit 83657beade8974ea89838d38d0e2fd725e4539ba
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>
add display-functions-alist to restore ivy variable
---
ivy-posframe.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index 367c74a..409a1e0 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -121,6 +121,11 @@
: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
@@ -460,15 +465,18 @@ selection, non-nil otherwise."
:group 'ivy-posframe
(let ((fncs ivy-posframe-display-function-list)
(advs ivy-posframe-advice-alist)
- (keys ivy-posframe-keybind-list))
+ (keys ivy-posframe-keybind-list)
+ (dfns ivy-posframe-display-functions-alist))
(if ivy-posframe-mode
(eval
`(progn
+ ,@(mapcar (lambda (elm) `(push ',elm ivy-display-functions-alist))
dfns)
,@(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)
,@(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 d35af4f 144/195: handle ivy-display-function again, (continued)
- [elpa] externals/ivy-posframe d35af4f 144/195: handle ivy-display-function again, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 8902638 100/195: define ivy-posframe-adbice-alist, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 212eaa1 138/195: indent ivy-posframe-mode, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe b934152 125/195: move variables section above advice section, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9e0c6da 118/195: generate readme, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 02a357d 104/195: define ivy-posframe-mode instead of ivy-posframe-enable, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe aea9074 122/195: add ivy-posframe--read advice, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 76350e7 146/195: Update README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe c4091c3 120/195: remove unnesessary code, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe e76a15d 162/195: Merge pull request #53 from gagbo/patch-1, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 83657be 114/195: add display-functions-alist to restore ivy variable,
Feng Shu <=
- [elpa] externals/ivy-posframe 27e3cec 176/195: Try to fix Minibuffer is hiding always #66, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe c43acf3 132/195: alias ivy-posframe-enable as ivy-posframe-mode, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 3c3740e 142/195: Add ivy-posframe-lighter, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 6d697ff 190/195: Try to fix: Posframe max-width? #82, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe ae9bafe 191/195: (defvar avy-pre-action), Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 4242977 079/195: Remove #' (function quote) of `lambda`, Feng Shu, 2020/10/03
- [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