From 646ae5cdd8ccbf5d78eb0488298b7c5e9c9a18a6 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sun, 20 Feb 2022 12:03:16 -0800 Subject: [PATCH] Fix eldoc-box-frame-hook to run in childframe as documented * eldoc-box.el (eldoc-box--get-frame): Run the hook in the childframe --- eldoc-box.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eldoc-box.el b/eldoc-box.el index 8955652..2c6e7e4 100644 --- a/eldoc-box.el +++ b/eldoc-box.el @@ -348,7 +348,8 @@ Checkout `lsp-ui-doc--make-frame', `lsp-ui-doc--move-frame'." ;; set size (eldoc-box--update-childframe-geometry frame window) (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))))