From 83bedf960591fb6baf0e2aaa67ac878823ebcf61 Mon Sep 17 00:00:00 2001 From: ueno Date: Sun, 31 Dec 2006 08:46:55 +0000 Subject: [PATCH] Simplified. --- epa.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/epa.el b/epa.el index ac10d7f..f486b8e 100644 --- a/epa.el +++ b/epa.el @@ -787,7 +787,7 @@ Don't use this command in Lisp programs!" (save-restriction (narrow-to-region start end) (goto-char start) - (let (armor-start armor-end coding-system) + (let (armor-start armor-end) (while (re-search-forward "-----BEGIN PGP MESSAGE-----$" nil t) (setq armor-start (match-beginning 0) armor-end (re-search-forward "^-----END PGP MESSAGE-----$" @@ -795,12 +795,11 @@ Don't use this command in Lisp programs!" (unless armor-end (error "No armor tail")) (goto-char armor-start) - (if (re-search-forward "^Charset: \\(.*\\)" armor-end t) - (setq coding-system (epa--find-coding-system-for-mime-charset - (intern (downcase (match-string 1)))))) (let ((coding-system-for-read (or coding-system-for-read - coding-system))) + (if (re-search-forward "^Charset: \\(.*\\)" armor-end t) + (epa--find-coding-system-for-mime-charset + (intern (downcase (match-string 1)))))))) (epa-decrypt-region armor-start armor-end))))))) ;;;###autoload -- 1.7.10.4