diff options
| author | Feng Shu <tumashu@163.com> | 2021-04-09 08:45:45 +0800 |
|---|---|---|
| committer | Feng Shu <tumashu@163.com> | 2021-04-09 08:48:28 +0800 |
| commit | 5c8f71fb2aa78c0648769809ac45e4e7c5126e98 (patch) | |
| tree | 50e864e734bddf83a0ec7414267cd31b06f7fc36 | |
| parent | 4eee3396744104411b57b820093ee6c9237d6e02 (diff) | |
parent-frame-poshandler => refposhandler
| -rw-r--r-- | ivy-posframe.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ivy-posframe.el b/ivy-posframe.el index 120ad88..89f782f 100644 --- a/ivy-posframe.el +++ b/ivy-posframe.el @@ -177,17 +177,18 @@ When nil, Using current frame's font as fallback." "The height of ivy-min-posframe." :type 'number) -(defcustom ivy-posframe-parent-frame-poshandler nil +(define-obsolete-variable-alias 'ivy-posframe-parent-frame-poshandler 'ivy-posframe-refposhandler "0.6") +(defcustom ivy-posframe-refposhandler nil "The parent frame poshandler use by ivy-posframe. User can set it to a function like below in EXWM environment, if EXWM's emacs position is (0 0). - (lambda () (cons 0 0)) + (lambda (_frame) (cons 0 0)) if not, user should provide own function, a reference is: -`posframe-parent-frame-poshandler-xwininfo'" +`posframe-refposhandler-xwininfo'" :type 'function) (defcustom ivy-posframe-size-function #'ivy-posframe-get-size @@ -268,7 +269,7 @@ This variable is useful for `ivy-posframe-read-action' .") :internal-border-width ivy-posframe-border-width :internal-border-color (face-attribute 'ivy-posframe-border :background nil t) :override-parameters ivy-posframe-parameters - :parent-frame-poshandler ivy-posframe-parent-frame-poshandler + :refposhandler ivy-posframe-refposhandler (funcall ivy-posframe-size-function)) (ivy-posframe--add-prompt 'ignore))) (with-current-buffer ivy-posframe-buffer |
