summaryrefslogtreecommitdiff
path: root/lisp/gnus/mml1991.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2006-04-29 03:51:50 +0000
committerMiles Bader <miles@gnu.org>2006-04-29 03:51:50 +0000
commit305452a5903e59a1de841ddf6f342918d3068462 (patch)
treeb805f05d5e96cce518f567f153e094c23cfad618 /lisp/gnus/mml1991.el
parent0303217f026f6173a2a5df07cfe46c56d205778b (diff)
downloademacs-305452a5903e59a1de841ddf6f342918d3068462.tar.gz
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-252
Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (patch 96-97) - Update from CVS
Diffstat (limited to 'lisp/gnus/mml1991.el')
-rw-r--r--lisp/gnus/mml1991.el25
1 files changed, 10 insertions, 15 deletions
diff --git a/lisp/gnus/mml1991.el b/lisp/gnus/mml1991.el
index 23953cd6208..4db3540aec1 100644
--- a/lisp/gnus/mml1991.el
+++ b/lisp/gnus/mml1991.el
@@ -229,8 +229,6 @@
(defvar pgg-output-buffer))
(defun mml1991-pgg-sign (cont)
- ;; Make sure to load pgg.el before binding pgg-* variables.
- (require 'pgg)
(let ((pgg-text-mode t)
(pgg-default-user-id (or (message-options-get 'mml-sender)
pgg-default-user-id))
@@ -275,19 +273,16 @@
(delete-region (point-min) (point))
(when cte
(mm-decode-content-transfer-encoding (intern (downcase cte))))))
- (unless (progn
- ;; Make sure to load pgg.el before binding `pgg-text-mode'.
- (require 'pgg)
- (let ((pgg-text-mode t))
- (pgg-encrypt-region
- (point-min) (point-max)
- (split-string
- (or
- (message-options-get 'message-recipients)
- (message-options-set 'message-recipients
- (read-string "Recipients: ")))
- "[ \f\t\n\r\v,]+")
- sign)))
+ (unless (let ((pgg-text-mode t))
+ (pgg-encrypt-region
+ (point-min) (point-max)
+ (split-string
+ (or
+ (message-options-get 'message-recipients)
+ (message-options-set 'message-recipients
+ (read-string "Recipients: ")))
+ "[ \f\t\n\r\v,]+")
+ sign))
(pop-to-buffer pgg-errors-buffer)
(error "Encrypt error"))
(delete-region (point-min) (point-max))