diff options
| author | Katsumi Yamaoka | 2010-04-22 08:24:25 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-04-22 08:24:25 +0000 |
| commit | 731533fdb6cf0f0db6fd258b45baabe9e148f459 (patch) | |
| tree | 9193b50ad6cadff92c140f3414d240926345cf68 | |
| parent | 489fe4c2ea3f7b1a7165a2387b5e018f69520f1b (diff) | |
| download | emacs-731533fdb6cf0f0db6fd258b45baabe9e148f459.tar.gz emacs-731533fdb6cf0f0db6fd258b45baabe9e148f459.zip | |
(message-generate-headers): Record insertion of optional headers as well.
Otherwise the check to prevent repeated insertion of optional headers
is a no-op. By Andreas Seltenreich <seltenreich@gmx.de>.
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 94524c262ac..f07f0da6253 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-04-22 Andreas Seltenreich <seltenreich@gmx.de> | ||
| 2 | |||
| 3 | * message.el (message-generate-headers): Record insertion of optional | ||
| 4 | headers as well. Otherwise the check to prevent repeated insertion of | ||
| 5 | optional headers is a no-op. | ||
| 6 | |||
| 1 | 2010-04-17 Teodor Zlatanov <tzz@lifelogs.com> | 7 | 2010-04-17 Teodor Zlatanov <tzz@lifelogs.com> |
| 2 | 8 | ||
| 3 | * smime.el: Don't mention CVS. | 9 | * smime.el: Don't mention CVS. |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 7a96d2480b4..79a88cd6bd3 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -5905,6 +5905,7 @@ Headers already prepared in the buffer are not modified." | |||
| 5905 | (if formatter | 5905 | (if formatter |
| 5906 | (funcall formatter header value) | 5906 | (funcall formatter header value) |
| 5907 | (insert header-string ": " value)) | 5907 | (insert header-string ": " value)) |
| 5908 | (push header-string message-inserted-headers) | ||
| 5908 | (goto-char (message-fill-field)) | 5909 | (goto-char (message-fill-field)) |
| 5909 | ;; We check whether the value was ended by a | 5910 | ;; We check whether the value was ended by a |
| 5910 | ;; newline. If not, we insert one. | 5911 | ;; newline. If not, we insert one. |