From 67ec0b9fd6b68a171f3e698451adf01c30b83a03 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Wed, 9 Aug 2023 20:17:44 -0700 Subject: [PATCH] * eldoc-box.el: Force rediplay after changing childframe size. Hopefully this fixes the problem brought by the workaround fixing issue#68. --- eldoc-box.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eldoc-box.el b/eldoc-box.el index 8896d74..2982e37 100644 --- a/eldoc-box.el +++ b/eldoc-box.el @@ -431,7 +431,10 @@ FRAME is the childframe, WINDOW is the primary window." (pos (funcall eldoc-box-position-function width height))) (set-frame-size frame width height t) ;; move position - (set-frame-position frame (car pos) (cdr pos)))) + (set-frame-position frame (car pos) (cdr pos)) + ;; Maybe forcing redisplay can make sure the new frame size is + ;; applied (issue#68). + (redisplay t)) (defun eldoc-box--inhibit-childframe-for (sec) "Inhibit display of childframe for SEC seconds after Emacs is idle again."