diff options
| author | Stefan Monnier | 2011-05-30 14:21:59 -0300 |
|---|---|---|
| committer | Stefan Monnier | 2011-05-30 14:21:59 -0300 |
| commit | 7a54264e4cf842b5546ed2d3ba7c2a87f7397f84 (patch) | |
| tree | c65ea7f04b7199cab33f6ee7b1bf6758c2e67ddf | |
| parent | 6105399dcc36b1b20c95378f895092ab36f7e986 (diff) | |
| download | emacs-7a54264e4cf842b5546ed2d3ba7c2a87f7397f84.tar.gz emacs-7a54264e4cf842b5546ed2d3ba7c2a87f7397f84.zip | |
* lisp/gnus/mml1991.el (mml1991-mailcrypt-encrypt): Remove use of ill-designed
mm-with-unibyte-current-buffer. The buffer should not contain any
multibyte chars anyway at this stage.
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/mml1991.el | 53 |
2 files changed, 32 insertions, 27 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 4aba3a27900..5a7ea842153 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-05-30 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * mml1991.el (mml1991-mailcrypt-encrypt): Remove use of ill-designed | ||
| 4 | mm-with-unibyte-current-buffer. The buffer should not contain any | ||
| 5 | multibyte chars anyway at this stage. | ||
| 6 | |||
| 1 | 2011-05-29 Lars Magne Ingebrigtsen <larsi@gnus.org> | 7 | 2011-05-29 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 8 | ||
| 3 | * shr.el (shr-urlify): Use shr-add-font to make underlines be less ugly | 9 | * shr.el (shr-urlify): Use shr-add-font to make underlines be less ugly |
diff --git a/lisp/gnus/mml1991.el b/lisp/gnus/mml1991.el index 0ce74b1d765..a5d778845c1 100644 --- a/lisp/gnus/mml1991.el +++ b/lisp/gnus/mml1991.el | |||
| @@ -137,33 +137,32 @@ Whether the passphrase is cached at all is controlled by | |||
| 137 | (while (looking-at "^Content[^ ]+:") (forward-line)) | 137 | (while (looking-at "^Content[^ ]+:") (forward-line)) |
| 138 | (unless (bobp) | 138 | (unless (bobp) |
| 139 | (delete-region (point-min) (point))) | 139 | (delete-region (point-min) (point))) |
| 140 | (mm-with-unibyte-current-buffer | 140 | (with-temp-buffer |
| 141 | (with-temp-buffer | 141 | (inline (mm-disable-multibyte)) |
| 142 | (inline (mm-disable-multibyte)) | 142 | (setq cipher (current-buffer)) |
| 143 | (setq cipher (current-buffer)) | 143 | (insert-buffer-substring text) |
| 144 | (insert-buffer-substring text) | 144 | (unless (mc-encrypt-generic |
| 145 | (unless (mc-encrypt-generic | 145 | (or |
| 146 | (or | 146 | (message-options-get 'message-recipients) |
| 147 | (message-options-get 'message-recipients) | 147 | (message-options-set 'message-recipients |
| 148 | (message-options-set 'message-recipients | 148 | (read-string "Recipients: "))) |
| 149 | (read-string "Recipients: "))) | 149 | nil |
| 150 | nil | 150 | (point-min) (point-max) |
| 151 | (point-min) (point-max) | 151 | (message-options-get 'message-sender) |
| 152 | (message-options-get 'message-sender) | 152 | 'sign) |
| 153 | 'sign) | 153 | (unless (> (point-max) (point-min)) |
| 154 | (unless (> (point-max) (point-min)) | 154 | (pop-to-buffer result-buffer) |
| 155 | (pop-to-buffer result-buffer) | 155 | (error "Encrypt error"))) |
| 156 | (error "Encrypt error"))) | 156 | (goto-char (point-min)) |
| 157 | (goto-char (point-min)) | 157 | (while (re-search-forward "\r+$" nil t) |
| 158 | (while (re-search-forward "\r+$" nil t) | 158 | (replace-match "" t t)) |
| 159 | (replace-match "" t t)) | 159 | (set-buffer text) |
| 160 | (set-buffer text) | 160 | (delete-region (point-min) (point-max)) |
| 161 | (delete-region (point-min) (point-max)) | 161 | ;;(insert "Content-Type: application/pgp-encrypted\n\n") |
| 162 | ;;(insert "Content-Type: application/pgp-encrypted\n\n") | 162 | ;;(insert "Version: 1\n\n") |
| 163 | ;;(insert "Version: 1\n\n") | 163 | (insert "\n") |
| 164 | (insert "\n") | 164 | (insert-buffer-substring cipher) |
| 165 | (insert-buffer-substring cipher) | 165 | (goto-char (point-max))))) |
| 166 | (goto-char (point-max)))))) | ||
| 167 | 166 | ||
| 168 | ;; pgg wrapper | 167 | ;; pgg wrapper |
| 169 | 168 | ||