diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2016-02-12 15:51:13 +1100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2016-02-12 15:51:13 +1100 |
commit | 7fe8d82924d92ea0d14861b74f8ce266e7bea52a (patch) | |
tree | dd315bf2d9dcfe34f6253ee63c9a2d1b0ea6f3b5 /lisp/gnus/mml1991.el | |
parent | 4a3ea2323bb6eebb425c22f0a5de2c544cc1999b (diff) | |
download | emacs-7fe8d82924d92ea0d14861b74f8ce266e7bea52a.tar.gz |
Don't use mm-with-unibyte-current in mml1991
* lisp/gnus/mml1991.el (mml1991-pgg-sign): Don't use
mm-with-unibyte-current.
Diffstat (limited to 'lisp/gnus/mml1991.el')
-rw-r--r-- | lisp/gnus/mml1991.el | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/lisp/gnus/mml1991.el b/lisp/gnus/mml1991.el index bb5c940f173..6db81be05f3 100644 --- a/lisp/gnus/mml1991.el +++ b/lisp/gnus/mml1991.el @@ -200,17 +200,20 @@ Whether the passphrase is cached at all is controlled by (pop-to-buffer pgg-errors-buffer) (error "Encrypt error")) (delete-region (point-min) (point-max)) - (mm-with-unibyte-current-buffer - (insert-buffer-substring pgg-output-buffer) - (goto-char (point-min)) - (while (re-search-forward "\r+$" nil t) - (replace-match "" t t)) - (when cte - (mm-encode-content-transfer-encoding cte)) - (goto-char (point-min)) - (when headers - (insert headers)) - (insert "\n")) + (insert + (with-temp-buffer + (set-buffer-multibyte nil) + (insert-buffer-substring pgg-output-buffer) + (goto-char (point-min)) + (while (re-search-forward "\r+$" nil t) + (replace-match "" t t)) + (when cte + (mm-encode-content-transfer-encoding cte)) + (goto-char (point-min)) + (when headers + (insert headers)) + (insert "\n") + (buffer-string))) t)) (defun mml1991-pgg-encrypt (cont &optional sign) |