summaryrefslogtreecommitdiff
path: root/lisp/epa.el
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2018-04-27 07:27:59 -0400
committerNoam Postavsky <npostavs@gmail.com>2018-06-03 12:48:14 -0400
commit0ac98cc6edf45e5acdf5d1bf79764745ec444381 (patch)
treec57dd7ad5b028ef2f05faa01b7dcb04dc0580cc8 /lisp/epa.el
parent9552485c4d471a02cd3973d4458d8513a81f9c85 (diff)
downloademacs-0ac98cc6edf45e5acdf5d1bf79764745ec444381.tar.gz
* lisp/epa.el (epa-decrypt-file): Apply epa-pinentry-mode (Bug#30363).
(cherry picked from commit 217202c084232f36d4fa0fead0f3aca21396d074)
Diffstat (limited to 'lisp/epa.el')
-rw-r--r--lisp/epa.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/epa.el b/lisp/epa.el
index a84e4f2b854..f2989b314a2 100644
--- a/lisp/epa.el
+++ b/lisp/epa.el
@@ -701,6 +701,7 @@ If you do not specify PLAIN-FILE, this functions prompts for the value to use."
#'epa-progress-callback-function
(format "Decrypting %s..."
(file-name-nondirectory decrypt-file))))
+ (setf (epg-context-pinentry-mode context) epa-pinentry-mode)
(message "Decrypting %s..." (file-name-nondirectory decrypt-file))
(condition-case error
(epg-decrypt-file context decrypt-file plain-file)