+1999-04-16 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * mime-pgp.el (mime-pgp-detect-version): Bug fix -- save
+ restriction before narrowing.
+
1999-04-15 Katsumi Yamaoka <yamaoka@jpl.org>
* mime-pgp.el (mime-add-application/pgp-keys): Use
(defun mime-pgp-detect-version ()
"Detect PGP version in the buffer. The buffer is expected to be narrowed
to just an ascii armor."
- (std11-narrow-to-header)
- (let ((version (std11-fetch-field "Version")))
+ (let (version)
+ (save-restriction
+ (std11-narrow-to-header)
+ (setq version (std11-fetch-field "Version"))
+ )
(cond ((not version)
pgp-version)
((string-match "GnuPG" version)