From: ueno Date: Sun, 30 Apr 2006 05:45:36 +0000 (+0000) Subject: Convert line endings only if pgg-text-mode is set. X-Git-Tag: epg-0_0_2~68 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=877f297945fd69bfe97a62e6ffa5469ce39ef2fb;p=elisp%2Fepg.git Convert line endings only if pgg-text-mode is set. --- diff --git a/pgg-epg.el b/pgg-epg.el index c93ffc7..6445c4c 100644 --- a/pgg-epg.el +++ b/pgg-epg.el @@ -125,15 +125,15 @@ passphrase cache or user." (erase-buffer)) (condition-case error (setq plain - (decode-coding-string - (epg-decrypt-string context (buffer-substring start end)) - 'raw-text) + (epg-decrypt-string context (buffer-substring start end)) pgg-epg-secret-key-id-list nil) (error (while pgg-epg-secret-key-id-list (pgg-remove-passphrase-from-cache (car pgg-epg-secret-key-id-list)) (setq pgg-epg-secret-key-id-list (cdr pgg-epg-secret-key-id-list))) (signal (car error) (cdr error)))) + (if pgg-text-mode + (setq plain (decode-coding-string plain 'raw-text))) (save-excursion (set-buffer (get-buffer-create pgg-output-buffer)) (insert plain))