[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30363: 26.0.91; epa-decrypt-file not using epa-pinentry-mode
From: |
Noam Postavsky |
Subject: |
bug#30363: 26.0.91; epa-decrypt-file not using epa-pinentry-mode |
Date: |
Wed, 7 Feb 2018 14:30:06 -0500 |
On Mon, Feb 5, 2018 at 8:48 PM, Rajeev Narang <rajeev.narang@gmail.com> wrote:
>
> (setq epa-pinentry-mode 'loopback)
>
> epa-decrypt-file (:d in dired mode) does not ask for the password in the
> minibuffer.
>
> in comparison, epa-sign-region does ask for the password in the minibuffer.
Just looking at those 2 functions, I'm guess the following would fix it?
--- i/lisp/epa.el
+++ w/lisp/epa.el
@@ -701,6 +701,7 @@ epa-decrypt-file
#'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)