branch: externals/ivy-posframe commit 4242977d45e153246e36f9078768fb4c8955a860 Author: conao3 <con...@gmail.com> Commit: conao3 <con...@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)