Cleanly handle C-g at client certificate prompt.
authorplugd <plugd@thelambdalab.xyz>
Fri, 31 Mar 2023 07:40:40 +0000 (09:40 +0200)
committerplugd <plugd@thelambdalab.xyz>
Fri, 31 Mar 2023 07:40:40 +0000 (09:40 +0200)
elpher.el

index 809e41f..2ba5e8e 100644 (file)
--- 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))