Revert (part of) last commit

This commit is contained in:
Yuan Fu 2019-06-08 22:53:54 +08:00
parent 2a198c4d3e
commit ac4a3965ea
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -245,6 +245,14 @@ WINDOW nil means use selected window."
;; normal, just return y + em
(+ y em)))))
(defun eldoc-box--default-at-point-position-function (width height)
"Set `eldoc-box-position-function' to this function to have childframe appear under point.
Position is calculated base on WIDTH and HEIGHT of childframe text window."
(let* ((pos (eldoc-box--default-at-point-position-function-1 width height))
(x (car pos))
(y (cdr pos)))
(cons (or (eldoc-box--at-point-x-by-company) x)
y)))
(defun eldoc-box--update-childframe-geometry (frame window)
"Update the size and the position of childframe.
FRAME is the childframe, WINDOW is the primary window."