branch: externals/posframe commit aa57a245680655c05720f5c9b3035dacfb9eb011 Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
* posframe.el (posframe-show): Add posframe-poshandler-argbuilder's info to docstring. --- posframe.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/posframe.el b/posframe.el index 54d8a60..a72c67a 100644 --- a/posframe.el +++ b/posframe.el @@ -462,6 +462,15 @@ The builtin poshandler functions are listed below: 17. `posframe-poshandler-point-bottom-left-corner-upward' 18. `posframe-poshandler-point-window-center' +by the way, poshandler can be used by other packages easily +(for example: mini-frame) with the help of function +`posframe-poshandler-argbuilder'. like: + + (let* ((info (posframe-poshandler-argbuilder child-frame)) + (posn (posframe-poshandler-window-center info))) + `((left . ,(car posn)) + (top . ,(cdr posn)))) + This posframe's buffer is BUFFER-OR-NAME, which can be a buffer or a name of a (possibly nonexistent) buffer.