]> git.eshelyaron.com Git - emacs.git/commit
Handle auth-source-search failures in open-network-stream
authorRobert Pluim <rpluim@gmail.com>
Sun, 17 Nov 2019 20:21:48 +0000 (21:21 +0100)
committerRobert Pluim <rpluim@gmail.com>
Mon, 25 Nov 2019 15:00:09 +0000 (16:00 +0100)
commit2d12d4d2d467f5df81e232707ad9191264b7c2b0
treecebd1af000cff9ef162f2d976f0bfd632471d2f0
parent5a3e96b17c2a948ac952295962dc6e281ec5cad5
Handle auth-source-search failures in open-network-stream

If the user cancels the gpg decryption pop-up, auth-source-search
fails *and* epa pops up an error buffer.  Fix epa to allow suppressing
that, and ignore errors returned from auth-source-search.

* lisp/epa.el (epa-suppress-error-buffer): New defvar.  Bind non-nil
to stop epa popping up an error buffer.

* lisp/net/network-stream.el: require epa when byte-compiling.
(network-stream-certificate): ignore errors when calling
auth-source-search, and suppress the epa error buffer.
lisp/epa.el
lisp/net/network-stream.el