[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe 4242977 079/195: Remove #' (function quote
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe 4242977 079/195: Remove #' (function quote) of `lambda` |
Date: |
Sat, 3 Oct 2020 07:11:49 -0400 (EDT) |
branch: externals/ivy-posframe
commit 4242977d45e153246e36f9078768fb4c8955a860
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>
Remove #' (function quote) of `lambda`
* ivy-posframe.el (ivy-posframe-display-at-frame-bottom-window-center):
refactoring
* ivy-posframe.el (ivy-posframe-setup): refactoring
We should use `lambda` without any quotes. Remove #' (function quote).
also see https://github.com/bbatsov/emacs-lisp-style-guide#functions .
---
ivy-posframe.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index aa677d0..f22f3ae 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -246,9 +246,9 @@ This variable is useful for `ivy-posframe-read-action' .")
(defun ivy-posframe-display-at-frame-bottom-window-center (str)
(ivy-posframe--display
- str #'(lambda (info)
- (cons (car (posframe-poshandler-window-center info))
- (cdr (posframe-poshandler-frame-bottom-left-corner info))))))
+ str (lambda (info)
+ (cons (car (posframe-poshandler-window-center info))
+ (cdr (posframe-poshandler-frame-bottom-left-corner info))))))
(defun ivy-posframe-display-at-point (str)
(ivy-posframe--display str #'posframe-poshandler-point-bottom-left-corner))
@@ -438,12 +438,12 @@ selection, non-nil otherwise."
"Add all display functions of ivy-posframe to
`ivy-display-functions-props'."
(mapatoms
- #'(lambda (func)
- (when (and (functionp func)
- (string-match-p "^ivy-posframe-display" (symbol-name func))
- (not (assq func ivy-display-functions-props)))
- (push `(,func :cleanup ivy-posframe-cleanup)
- ivy-display-functions-props)))))
+ (lambda (func)
+ (when (and (functionp func)
+ (string-match-p "^ivy-posframe-display" (symbol-name func))
+ (not (assq func ivy-display-functions-props)))
+ (push `(,func :cleanup ivy-posframe-cleanup)
+ ivy-display-functions-props)))))
(ivy-posframe-setup)
- [elpa] externals/ivy-posframe aea9074 122/195: add ivy-posframe--read advice, (continued)
- [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, 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 <=
- [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, 2020/10/03
- [elpa] externals/ivy-posframe 441c1bf 150/195: Fix First line disappears with the specific condition. #47, Feng Shu, 2020/10/03