[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe aea9074 122/195: add ivy-posframe--read ad
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe aea9074 122/195: add ivy-posframe--read advice |
Date: |
Sat, 3 Oct 2020 07:11:58 -0400 (EDT) |
branch: externals/ivy-posframe
commit aea907430e2b8013c0e927fbda5a498fcb6dbbf0
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>
add ivy-posframe--read advice
---
ivy-posframe.el | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index fd9169b..104e700 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -197,6 +197,11 @@ When 0, no border is showed."
:group 'ivy-posframe
:type 'sexp)
+(defcustom ivy-posframe-display-functions-alist '((t . ivy-posframe-display))
+ "The `ivy-display-functions-alist' while working ivy-posframe."
+ :group 'ivy-posframe
+ :type 'sexp)
+
(defcustom ivy-posframe-additional-display-functions nil
"The additional display functions"
:group 'ivy-posframe
@@ -472,6 +477,12 @@ selection, non-nil otherwise."
(append ivy-posframe-height-alist ivy-height-alist)))
(apply fn args)))
+(defun ivy-posframe--read (fn &rest args)
+ "Around advice of FN with AGS."
+ (let ((ivy-display-functions-alist
+ (append ivy-posframe-display-functions-alist
ivy-display-functions-alist)))
+ (apply fn args)))
+
;;; variables
(defvar ivy-posframe-display-function-list
@@ -485,7 +496,8 @@ selection, non-nil otherwise."
(defvar ivy-posframe-advice-alist
'((ivy--minibuffer-setup . ivy-posframe--minibuffer-setup)
(ivy--queue-exhibit . ivy-posframe--add-prompt)
- (ivy--height . ivy-posframe--height)))
+ (ivy--height . ivy-posframe--height)
+ (ivy-read . ivy-posframe--read)))
;;;###autoload
(define-minor-mode ivy-posframe-mode
- [elpa] externals/ivy-posframe 95c1028 177/195: ivy-display-function -> ivy--display-function, (continued)
- [elpa] externals/ivy-posframe 95c1028 177/195: ivy-display-function -> ivy--display-function, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe aae7322 119/195: use ivy-posframe-mode-map instead of define-key, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 35d47bd 117/195: refine document, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 7dc84ee 152/195: Fix2 First line disappears with the specific condition. #47, Feng Shu, 2020/10/03
- [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 <=
- [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, 2020/10/03
- [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