summaryrefslogtreecommitdiff
path: root/lisp/epg-config.el
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2018-04-29 10:32:03 -0400
committerNoam Postavsky <npostavs@gmail.com>2018-05-23 07:53:58 -0400
commit302e500087fd4cc1c5f37ec87c98e828b22aaa05 (patch)
treeb9367f87996ecddb79c3e8f2b5a487f66cf2f8cb /lisp/epg-config.el
parent21ab346a07eff8ba43cb2738dc6752f012b77670 (diff)
downloademacs-302e500087fd4cc1c5f37ec87c98e828b22aaa05.tar.gz
emacs-302e500087fd4cc1c5f37ec87c98e828b22aaa05.tar.bz2
emacs-302e500087fd4cc1c5f37ec87c98e828b22aaa05.zip
Move epa-pinentry-mode to epg-config (Bug#26298)
* lisp/epa.el (epa-pinentry-mode): Make into obsolete alias for... * lisp/epg-config.el (epg-pinentry-mode): ...this new user option. * lisp/epg.el (epg-context): Use it as the default value for pinentry-mode. * etc/NEWS: Announce name change. * lisp/epa-file.el (epa-file-insert-file-contents) (epa-file-write-region): * lisp/epa.el (epa-decrypt-file, epa-sign-file) (epa-encrypt-file, epa-decrypt-region) (epa-sign-region, epa-encrypt-region): Don't change epg-context-pinentry-mode from the default.
Diffstat (limited to 'lisp/epg-config.el')
-rw-r--r--lisp/epg-config.el21
1 files changed, 21 insertions, 0 deletions
diff --git a/lisp/epg-config.el b/lisp/epg-config.el
index bf9360cdb4f..9d9bd7101e1 100644
--- a/lisp/epg-config.el
+++ b/lisp/epg-config.el
@@ -69,6 +69,27 @@ instead use \\[customize] (see the info node `Easy Customization')."
"Coding system to use with messages from `epg-gpg-program'."
:type 'symbol)
+
+;; In the doc string below, we say "symbol `error'" to avoid producing
+;; a hyperlink for `error' the function.
+(defcustom epg-pinentry-mode nil
+ "The pinentry mode.
+
+GnuPG 2.1 or later has an option to control the behavior of
+Pinentry invocation. The value should be the symbol `error',
+`ask', `cancel', or `loopback'. See the GnuPG manual for the
+meanings.
+
+A particularly useful mode is `loopback', which redirects all
+Pinentry queries to the caller, so Emacs can query passphrase
+through the minibuffer, instead of external Pinentry program."
+ :type '(choice (const nil)
+ (const ask)
+ (const cancel)
+ (const error)
+ (const loopback))
+ :version "27.1")
+
(defcustom epg-debug nil
"If non-nil, debug output goes to the \" *epg-debug*\" buffer.
Note that the buffer name starts with a space."