branch: elpa/eldoc-mouse
commit d9819c88a2728b3d82fe2dddd669dc36983e9988
Author: HuangFeiyu <[email protected]>
Commit: HuangFeiyu <[email protected]>
add a custom to set up the max height of the posframe.
---
eldoc-mouse.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/eldoc-mouse.el b/eldoc-mouse.el
index 0013181c329..264a0e99bbe 100644
--- a/eldoc-mouse.el
+++ b/eldoc-mouse.el
@@ -66,6 +66,13 @@ that the mouse hover on a symbol before
:type 'number
:group 'eldoc-mouse)
+(defcustom eldoc-mouse-posframe-max-height 8
+ "The maximum number of lines posframe may contain.
+It could be nil, means no limit, in practical, I found that set this too big or
+no limit, the popup may affect writing."
+ :type 'number
+ :group 'eldoc-mouse)
+
(defcustom eldoc-mouse-posframe-buffer-name "*doc-posframe-buffer*"
"The name of the hidden buffer used by posframe."
:type 'string
@@ -177,6 +184,7 @@ Argument INTERACTIVE the argument used by eldoc."
:poshandler
#'posframe-poshandler-point-bottom-left-corner-upward
:max-width eldoc-mouse-posframe-max-width
:min-height eldoc-mouse-posframe-min-height
+ :max-height eldoc-mouse-posframe-max-height
:border-width 1
:border-color border-color
:string text))))