[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe 0a8cb5a 101/195: fix advice function style
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe 0a8cb5a 101/195: fix advice function style |
Date: |
Sat, 3 Oct 2020 07:11:53 -0400 (EDT) |
branch: externals/ivy-posframe
commit 0a8cb5a6b22f2204d162facdb14401b4dbfa5b3c
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>
fix advice function style
---
ivy-posframe.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index f5cc474..465c66d 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -411,10 +411,10 @@ selection, non-nil otherwise."
;;; Advice
-(defun ivy-posframe--minibuffer-setup (orig-func)
+(defun ivy-posframe--minibuffer-setup (fn &rest args)
"Advice function of `ivy--minibuffer-setup'."
(let ((ivy-fixed-height-minibuffer nil))
- (funcall orig-func))
+ (apply fn args))
(when (and ivy-posframe-hide-minibuffer
;; only hide minibuffer's info when posframe is showed.
ivy-posframe--display-p)
@@ -425,8 +425,9 @@ selection, non-nil otherwise."
`(:background ,bg-color :foreground ,bg-color)))
(setq-local cursor-type nil))))
-(defun ivy-posframe--add-prompt ()
+(defun ivy-posframe--add-prompt (fn &rest args)
"Add the ivy prompt to the posframe."
+ (apply fn args)
(unless ivy-posframe--ignore-prompt
(with-current-buffer (window-buffer (active-minibuffer-window))
(let ((point (point))
@@ -458,7 +459,7 @@ selection, non-nil otherwise."
(define-key ivy-minibuffer-map [remap ivy-avy] 'ivy-posframe-avy)
(define-key ivy-minibuffer-map [remap swiper-avy] 'ivy-posframe-swiper-avy)
(advice-add 'ivy--minibuffer-setup :around #'ivy-posframe--minibuffer-setup)
- (advice-add 'ivy--queue-exhibit :after #'ivy-posframe--add-prompt)
+ (advice-add 'ivy--queue-exhibit :around #'ivy-posframe--add-prompt)
(message "ivy-posframe is enabled, disabling it need to reboot emacs."))
;;;###autoload
- [elpa] externals/ivy-posframe ae9bafe 191/195: (defvar avy-pre-action), (continued)
- [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
- [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 <=
- [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, 2020/10/03
- [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