X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=pgg-pgp5.el;h=034758fc5ae43576b4ffa06504786031a182dd03;hb=a418e1c8b54f1dfb2e4f648b30107c0e9b5ae98b;hp=9a0ccf983937caf3c7dcd37a17f0cb59cebff9d9;hpb=dfd925a11b8f90d7af2a66631d198aee9eedd78c;p=elisp%2Fsemi.git diff --git a/pgg-pgp5.el b/pgg-pgp5.el index 9a0ccf9..034758f 100644 --- a/pgg-pgp5.el +++ b/pgg-pgp5.el @@ -20,8 +20,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Code: @@ -74,9 +74,6 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"." (defvar pgg-pgp5-user-id nil "PGP 5.* ID of your default identity.") -(defvar pgg-pgp5-messages-coding-system pgg-messages-coding-system - "Coding system used when reading from a PGP5 external process.") - (defvar pgg-scheme-pgp5-instance nil) ;;;###autoload @@ -86,9 +83,7 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"." (luna-make-entity 'pgg-scheme-pgp5)))) (defun pgg-pgp5-process-region (start end passphrase program args) - (let* ((errors-file-name - (concat temporary-file-directory - (make-temp-name "pgg-errors"))) + (let* ((errors-file-name (make-temp-file "pgg-errors")) (args (append args pgg-pgp5-extra-args @@ -108,8 +103,7 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"." (unwind-protect (progn (setq process - (apply #'binary-to-text-funcall - pgg-pgp5-messages-coding-system + (apply #'binary-funcall #'start-process-shell-command "*PGP*" output-buffer program args)) (set-process-sentinel process #'ignore) @@ -208,10 +202,9 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"." (luna-define-method pgg-scheme-verify-region ((scheme pgg-scheme-pgp5) start end &optional signature) - (let* ((basename (expand-file-name "pgg" temporary-file-directory)) - (orig-file (make-temp-name basename)) - (args '("+verbose=1" "+batchmode=1" "+language=us")) - (orig-mode (default-file-modes))) + (let ((orig-file (make-temp-file "pgg")) + (args '("+verbose=1" "+batchmode=1" "+language=us")) + (orig-mode (default-file-modes))) (unwind-protect (progn (set-default-file-modes 448) @@ -243,8 +236,7 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"." (luna-define-method pgg-scheme-snarf-keys-region ((scheme pgg-scheme-pgp5) start end) (let* ((pgg-pgp5-user-id (or pgg-pgp5-user-id pgg-default-user-id)) - (basename (expand-file-name "pgg" temporary-file-directory)) - (key-file (make-temp-name basename)) + (key-file (make-temp-file "pgg")) (args (list "+verbose=1" "+batchmode=1" "+language=us" "-a" key-file)))