diff --git a/eldoc-frame.el b/eldoc-frame.el index 3024d4e..92b625e 100644 --- a/eldoc-frame.el +++ b/eldoc-frame.el @@ -378,10 +378,10 @@ window is on the right. Return ‘left’ if there is only one window in the fra (defun eldoc-frame--maybe-hide-frame () "Hide ElDoc child frame if it is appropriate to do so. -The child frame will be hidden if it is currently visible, the child frame is -not currently selected, and the point has moved or `eldoc-frame-mode' is no -longer active." +The child frame will be hidden if it is live and visible, is not currently +selected, and the point has moved or `eldoc-frame-mode' is no longer active." (when (and eldoc-frame--frame + (frame-live-p eldoc-frame--frame) (frame-visible-p eldoc-frame--frame) (not (eq (selected-frame) eldoc-frame--frame)) (or (not (eq (point) eldoc-frame--last-point))