X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=tm-pgp.el;h=e5196d44620cbb54aab30d9f02a010b40814c17c;hb=29e661110079bf0d047d34fa64f7a963d06b7522;hp=6ebbd7225b49421eeee68e32c2797d5b82dcf6b9;hpb=ebd0dcfac7f3da06820141c0808072442aa8fda6;p=elisp%2Ftm.git diff --git a/tm-pgp.el b/tm-pgp.el index 6ebbd72..e5196d4 100644 --- a/tm-pgp.el +++ b/tm-pgp.el @@ -8,7 +8,7 @@ ;;; Maintainer: MORIOKA Tomohiko ;;; Created: 1995/12/7 ;;; Version: -;;; $Id: tm-pgp.el,v 7.15 1996/05/27 08:16:38 morioka Exp $ +;;; $Id: tm-pgp.el,v 7.19 1996/07/18 12:20:32 morioka Exp $ ;;; Keywords: mail, news, MIME, multimedia, PGP, security ;;; ;;; This file is part of tm (Tools for MIME). @@ -89,19 +89,13 @@ (goto-char (point-min)) (re-search-forward "^-+BEGIN PGP MESSAGE-+$" nil t) ) - (let ((program-coding-system-alist - (if (boundp 'program-coding-system-alist) - (cons '((nil . ".*pgp.*") *noconv* . *noconv*) - program-coding-system-alist)) - )) - (mc-decrypt) - ) + (as-binary-process (mc-decrypt)) (goto-char (point-min)) (delete-region (point-min) (and (search-forward "\n\n") (match-end 0))) - (setq code-converter (function mime-charset-decode-region)) + (setq code-converter (function mime-charset/decode-buffer)) )) (setq major-mode 'mime/show-message-mode) (setq mime::article/code-converter code-converter) @@ -175,8 +169,7 @@ (replace-match "\r\n") ) (let ((mc-flag nil) ; for Mule - (file-coding-system - (if (featurep 'mule) *noconv*)) + (file-coding-system *noconv*) kanji-flag ; for NEmacs (emx-binary-mode t) ; for OS/2 jka-compr-compression-info-list ; for jka-compr @@ -187,6 +180,9 @@ (kill-buffer (current-buffer)) ) (save-excursion + (mime-article/show-output-buffer) + ) + (save-excursion (setq str (buffer-substring (save-excursion (goto-char beg) @@ -197,8 +193,7 @@ (insert str) (mime-decode-region (point-min)(point-max) encoding) (let ((mc-flag nil) ; for Mule - (file-coding-system - (if (featurep 'mule) *noconv*)) + (file-coding-system *noconv*) kanji-flag ; for NEmacs (emx-binary-mode t) ; for OS/2 jka-compr-compression-info-list ; for jka-compr @@ -206,8 +201,6 @@ require-final-newline) (write-file sig-file) ) - ;;(define-program-coding-system (current-buffer) "pgp" *noconv*) - (mime-article/show-output-buffer) ;;(get-buffer-create mime/output-buffer-name) (or (mime::article/call-pgp-to-check-signature mime/output-buffer-name orig-file)