epg: Improve error handling
commit9e48a95cf29f39b30b03e946cdd05c7664053fd7
authorDaiki Ueno <ueno@gnu.org>
Thu, 6 Nov 2014 03:04:22 +0000 (6 12:04 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 6 Nov 2014 03:04:22 +0000 (6 12:04 +0900)
treed326b72cab3c7aa3d17411bd017207e59d263bce
parente1418d0e252b8f2b42eea18f16b25a78ca2ac721
epg: Improve error handling

* epa.el (epa-error-buffer): New variable.
(epa-display-error): New function.
(epa-decrypt-file, epa-verify-file, epa-verify-region)
(epa-delete-keys, epa-import-keys): Display output sent to stderr.
(epa-sign-file, epa-sign-region, epa-encrypt-region)
(epa-export-keys, epa-insert-keys): Display output sent to stderr.
Use setf instead of epg-context-set-*.
* epa-file.el (epa-file-insert-file-contents): Use
epa-display-error instead of epa-display-info.  Mimic the behavior
of jka-compr when decryption program is not found.
(epa-file-write-region): Use epa-display-error instead of
epa-display-info.
lisp/ChangeLog
lisp/epa-file.el
lisp/epa.el