From 5982f725ac58e53efe63e47ffa28bc41c8306318 Mon Sep 17 00:00:00 2001 From: plugd Date: Fri, 31 Mar 2023 09:40:40 +0200 Subject: [PATCH] Cleanly handle C-g at client certificate prompt. --- elpher.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/elpher.el b/elpher.el index 809e41f..2ba5e8e 100644 --- a/elpher.el +++ b/elpher.el @@ -1391,7 +1391,8 @@ that the response was malformed." (insert "Gemini server is requesting a valid TLS certificate:\n\n")) (auto-fill-mode 1) (elpher-gemini-insert-text response-meta)) - (let ((chosen-certificate (elpher-choose-client-certificate))) + (let ((chosen-certificate + (with-local-quit (elpher-choose-client-certificate)))) (unless chosen-certificate (error "Gemini server requires a client certificate and none was provided")) (setq elpher-client-certificate chosen-certificate)) -- 2.20.1