;;; Code:
+(require 'mel) ; binary-to-text-funcall, binary-write-decoded-region
(eval-when-compile (require 'pgg))
(defgroup pgg-pgp ()
(defvar pgg-pgp-user-id nil
"PGP ID of your default identity.")
+(defvar pgg-pgp-messages-coding-system pgg-messages-coding-system
+ "Coding system used when reading from a PGP external process.")
+
(defvar pgg-scheme-pgp-instance nil)
;;;###autoload
(unwind-protect
(progn
(setq process
- (apply #'binary-start-process-shell-command "*PGP*"
- output-buffer
+ (apply #'binary-to-text-funcall
+ pgg-pgp-messages-coding-system
+ #'start-process-shell-command "*PGP*" output-buffer
program args))
(set-process-sentinel process #'ignore)
(when passphrase
(unwind-protect
(progn
(set-default-file-modes 448)
- (binary-write-region start end orig-file))
+ (binary-write-decoded-region start end orig-file))
(set-default-file-modes orig-mode))
(when (stringp signature)
(copy-file signature (setq signature (concat orig-file ".asc")))