]> code.delx.au - gnu-emacs/blobdiff - lisp/epg.el
Add pinentry.el for better GnuPG integration
[gnu-emacs] / lisp / epg.el
index 601504882e60a94ffbcdda37b378666f10c0b3de..b3d39bb85053f72e230261368716ac3abe6f9b0c 100644 (file)
@@ -602,6 +602,9 @@ callback data (if any)."
       (setq process-environment
            (cons (concat "GPG_TTY=" terminal-name)
                  (cons "TERM=xterm" process-environment))))
+    (setq process-environment
+          (cons (format "INSIDE_EMACS=%s,epg" emacs-version)
+                process-environment))
     ;; Record modified time of gpg-agent socket to restore the Emacs
     ;; frame on text terminal in `epg-wait-for-completion'.
     ;; See