+2012-12-28 Andreas Schwab <schwab@linux-m68k.org>
+
+ * epg.el (epg--start): Modify process-environment locally.
+
2012-12-28 Daiki Ueno <ueno@gnu.org>
* epg.el: Support pinentry-curses.
(coding-system-for-write 'binary)
(coding-system-for-read 'binary)
process-connection-type
+ (process-environment process-environment)
(orig-mode (default-file-modes))
(buffer (generate-new-buffer " *epg*"))
process
(delete-backward-char 1)
(setq terminal-name (buffer-string))))
(when terminal-name
- (setenv "GPG_TTY" terminal-name)
- (setenv "TERM" "xterm"))
+ (setq process-environment
+ (cons (concat "GPG_TTY=" terminal-name)
+ (cons "TERM=xterm" process-environment))))
;; Record modified time of gpg-agent socket to restore the Emacs
;; frame on text terminal in `epg-wait-for-completion'.
;; See