From 877f297945fd69bfe97a62e6ffa5469ce39ef2fb Mon Sep 17 00:00:00 2001 From: ueno Date: Sun, 30 Apr 2006 05:45:36 +0000 Subject: [PATCH] Convert line endings only if pgg-text-mode is set. --- pgg-epg.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) -- 1.7.10.4