Fix "wrong type argument" error on pressing C-g

* eldoc-box.el (eldoc-box-quit-frame): add frame-live-p condition.
This commit is contained in:
Alexey Gorelov 2022-09-09 18:04:38 +03:00 committed by Yuan Fu
parent 4a57d48115
commit 5b893437c8
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -156,7 +156,7 @@ See `eldoc-box-inhibit-display-when-moving'."
(defun eldoc-box-quit-frame ()
"Hide childframe used by eglot doc."
(interactive)
(when eldoc-box--frame
(when (and eldoc-box--frame (frame-live-p eldoc-box--frame))
(make-frame-invisible eldoc-box--frame t)))
(defun eldoc-box--enable ()