From: ueno Date: Tue, 25 Apr 2006 06:35:34 +0000 (+0000) Subject: Create pgg-output-buffer everytime cryptographic operations are called. X-Git-Tag: epg-0_0_1~20 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=07836f70a2f41e4b148277a3cb1d85097697833e;p=elisp%2Fepg.git Create pgg-output-buffer everytime cryptographic operations are called. --- diff --git a/pgg-epg.el b/pgg-epg.el index 345cc7c..e21faa2 100644 --- a/pgg-epg.el +++ b/pgg-epg.el @@ -63,6 +63,8 @@ passphrase cache or user." (epg-context-set-armor context t) (epg-context-set-textmode context pgg-text-mode) (epg-context-set-passphrase-callback context #'pgg-epg-passphrase-callback) + (get-buffer-create pgg-output-buffer) + (get-buffer-create pgg-errors-buffer) (condition-case error (setq cipher (epg-encrypt-string context @@ -107,6 +109,8 @@ passphrase cache or user." (epg-context-set-armor context t) (epg-context-set-textmode context pgg-text-mode) (epg-context-set-passphrase-callback context #'pgg-epg-passphrase-callback) + (get-buffer-create pgg-output-buffer) + (get-buffer-create pgg-errors-buffer) (condition-case error (setq plain (epg-decrypt-string context (buffer-substring start end)) pgg-epg-secret-key-id-list nil) @@ -133,6 +137,8 @@ passphrase cache or user." (epg-context-set-armor context t) (epg-context-set-textmode context pgg-text-mode) (epg-context-set-passphrase-callback context #'pgg-epg-passphrase-callback) + (get-buffer-create pgg-output-buffer) + (get-buffer-create pgg-errors-buffer) (condition-case error (setq signature (epg-sign-string context @@ -161,6 +167,8 @@ Verify region between START and END as the detached signature SIGNATURE." (let ((context (epg-make-context))) (epg-context-set-armor context t) (epg-context-set-textmode context pgg-text-mode) + (get-buffer-create pgg-output-buffer) + (get-buffer-create pgg-errors-buffer) (if signature (epg-verify-string context (with-temp-buffer