[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe 716ce62 105/195: refactoring; using let-en
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe 716ce62 105/195: refactoring; using let-environment |
Date: |
Sat, 3 Oct 2020 07:11:54 -0400 (EDT) |
branch: externals/ivy-posframe
commit 716ce629c8d4b1d95aa9b8d8c90f7d4e0a17f048
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>
refactoring; using let-environment
---
ivy-posframe.el | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index 6e6a20f..a150473 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -458,19 +458,15 @@ selection, non-nil otherwise."
:global t
:lighter " ivy-pf"
:group 'ivy-posframe
- (if ivy-posframe-mode
- (eval
- `(progn
- (mapcar (lambda (fn)
- `(push `(,fn :cleanup ivy-posframe-cleanup)
ivy-display-functions-props))
- ivy-posframe-display-functions)
- (mapcar (lambda (elm)
- `(advice-add ',(car elm) :around #',(cdr elm)))
- ivy-posframe-advice-alist)
- (mapcar (lambda (elm)
- (let ((map (nth 0 elm)) (key (nth 1 elm)) (cmd (nth 2
elm)))
- `(define-key ,map ,key ',cmd)))
- ivy-posframe-keybind-list)))))
+ (let ((fncs ivy-posframe-display-functions)
+ (advs ivy-posframe-advice-alist)
+ (keys ivy-posframe-keybind-list))
+ (if ivy-posframe-mode
+ (eval
+ `(progn
+ (mapcar (lambda (elm) `(push `(,elm :cleanup ivy-posframe-cleanup)
ivy-display-functions-props)) fncs)
+ (mapcar (lambda (elm) `(advice-add ',(car elm) :around #',(cdr
elm))) vars)
+ (mapcar (lambda (elm) `(define-key ,(nth 0 elm) ,(nth 1 elm)
',(nth 2 elm)) keys)))))))
;;;###autoload
(defun ivy-posframe-demo ()
- [elpa] externals/ivy-posframe fd1e40a 113/195: change variable name, (continued)
- [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
- [elpa] externals/ivy-posframe 2f1fdbe 169/195: use mapc instead of mapcar, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe f4e17ae 127/195: remove unneeded configure alist variable, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 057d628 182/195: Fix for prompt line duplicated issue. #71, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 716ce62 105/195: refactoring; using let-environment,
Feng Shu <=
- [elpa] externals/ivy-posframe 8ad4668 180/195: Update README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 8abcf52 163/195: define defun-advice function, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 0082f43 147/195: add maintainer comment of conao3 at header, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe d5e7314 099/195: move ivy-posframe--add-prompt to advice section, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 80036e7 103/195: define keybind with ivy-posframe-keybind-list, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 52ba5f7 156/195: Merge pull request #49 from tttuuu888/work-list2, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe dbcd5a8 159/195: simplify get next beginning position, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 51d7535 186/195: Remove prompt replication in different approach. #71, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 6545fad 193/195: Fix swiper example, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 2eee01f 166/195: remove unneeded progn, Feng Shu, 2020/10/03