From 5b893437c8594028653d676015bb580574d9f0e1 Mon Sep 17 00:00:00 2001 From: Alexey Gorelov Date: Fri, 9 Sep 2022 18:04:38 +0300 Subject: [PATCH] Fix "wrong type argument" error on pressing C-g * eldoc-box.el (eldoc-box-quit-frame): add frame-live-p condition. --- eldoc-box.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eldoc-box.el b/eldoc-box.el index f563e57..af93682 100644 --- a/eldoc-box.el +++ b/eldoc-box.el @@ -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 ()