+1999-04-05 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * mime-pgp.el (mime-pgp-parse-verify-error): Use
+ `with-current-buffer' instead of `save-current-buffer'.
+ (mime-pgp-check-signature): Use `with-current-buffer' instead of
+ `save-current-buffer'; add comment about PGP 5.0i.
+
1999-04-06 Shuhei KOBAYASHI <shuhei@aqua.ocn.ne.jp>
* mime-edit.el (mime-delete-field): Use `std11-field-end'.
)))
(defun mime-pgp-check-signature (output-buffer orig-file)
- (save-current-buffer
- (set-buffer output-buffer)
+ (with-current-buffer output-buffer
(erase-buffer)
(setq truncate-lines t))
(let* ((lang (mime-pgp-default-language))
(if (zerop (apply 'call-process-region
(point-min) (point-max) command nil output-buffer nil
args))
- (save-current-buffer
- (set-buffer output-buffer)
+ (with-current-buffer output-buffer
(goto-char (point-min))
(cond
((not (stringp regexp))
)
(t
(message "Bad signature")
+ ;; PGP 5.0i always returns 0 status, so returns nil
+ ;; in order for attempt to fetch key.
(not (eq 'pgp50 pgp-version))
))
)
nil)))
(defmacro mime-pgp-parse-verify-error (&rest forms)
- (` (save-current-buffer
- (set-buffer mime-echo-buffer-name)
+ (` (with-current-buffer mime-echo-buffer-name
(goto-char (point-min))
(prog1
(let ((regexp (mime-pgp-key-expected-regexp)))