emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-posframe b934152 125/195: move variables section ab


From: Feng Shu
Subject: [elpa] externals/ivy-posframe b934152 125/195: move variables section above advice section
Date: Sat, 3 Oct 2020 07:11:58 -0400 (EDT)

branch: externals/ivy-posframe
commit b934152e288c4d41852e1a09bbf8596b0572a483
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>

    move variables section above advice section
---
 ivy-posframe.el | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/ivy-posframe.el b/ivy-posframe.el
index 4a631cb..5bdc909 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -441,6 +441,23 @@ selection, non-nil otherwise."
         (ivy-quit-and-run
           (avy-action-goto (avy-candidate-beg candidate)))))))
 
+;;; Variables
+
+(defvar ivy-posframe-display-function-list
+  (append
+   ivy-posframe-additional-display-functions
+   (mapcar (lambda (elm) (intern (format "ivy-posframe-display-at-%s" (car 
elm))))
+           ivy-posframe-display-function-alist)
+   '(ivy-posframe-display
+     ivy-posframe-display-at-frame-bottom-window-center)))
+
+(defvar ivy-posframe-advice-alist
+  '((ivy--minibuffer-setup . ivy-posframe--minibuffer-setup)
+    (ivy--queue-exhibit    . ivy-posframe--add-prompt)
+    (ivy--display-function-prop . ivy-posframe--display-function-prop)
+    (ivy--height           . ivy-posframe--height)
+    (ivy-read              . ivy-posframe--read)))
+
 ;;; Advice
 
 (defun ivy-posframe--minibuffer-setup (fn &rest args)
@@ -491,23 +508,6 @@ selection, non-nil otherwise."
          (append ivy-posframe-display-functions-alist 
ivy-display-functions-alist)))
     (apply fn args)))
 
-;;; variables
-
-(defvar ivy-posframe-display-function-list
-  (append
-   ivy-posframe-additional-display-functions
-   (mapcar (lambda (elm) (intern (format "ivy-posframe-display-at-%s" (car 
elm))))
-           ivy-posframe-display-function-alist)
-   '(ivy-posframe-display
-     ivy-posframe-display-at-frame-bottom-window-center)))
-
-(defvar ivy-posframe-advice-alist
-  '((ivy--minibuffer-setup . ivy-posframe--minibuffer-setup)
-    (ivy--queue-exhibit    . ivy-posframe--add-prompt)
-    (ivy--display-function-prop . ivy-posframe--display-function-prop)
-    (ivy--height           . ivy-posframe--height)
-    (ivy-read              . ivy-posframe--read)))
-
 ;;;###autoload
 (define-minor-mode ivy-posframe-mode
   "Display ivy via posframe."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]