Fix eldoc-box-frame-hook to run in childframe as documented

* eldoc-box.el (eldoc-box--get-frame): Run the hook in the childframe
This commit is contained in:
Yuan Fu 2022-02-20 12:03:16 -08:00
parent 3efb59ab78
commit 646ae5cdd8
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -348,7 +348,8 @@ Checkout `lsp-ui-doc--make-frame', `lsp-ui-doc--move-frame'."
;; set size ;; set size
(eldoc-box--update-childframe-geometry frame window) (eldoc-box--update-childframe-geometry frame window)
(setq eldoc-box--frame frame) (setq eldoc-box--frame frame)
(run-hook-with-args 'eldoc-box-frame-hook main-frame) (with-selected-frame frame
(run-hook-with-args 'eldoc-box-frame-hook main-frame))
(make-frame-visible frame)))) (make-frame-visible frame))))