From: plugd Date: Fri, 31 Mar 2023 07:40:40 +0000 (+0200) Subject: Cleanly handle C-g at client certificate prompt. X-Git-Tag: v3.5.0~3 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=5982f725ac58e53efe63e47ffa28bc41c8306318;p=elpher.git Cleanly handle C-g at client certificate prompt. --- 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))