* eldoc-box.el: Force rediplay after changing childframe size.

Hopefully this fixes the problem brought by the workaround fixing
issue#68.
This commit is contained in:
Yuan Fu 2023-08-09 20:17:44 -07:00
parent b5aa481432
commit 67ec0b9fd6
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -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."