diff options
| author | Jeffrey C Honig | 2012-12-08 16:48:20 -0500 |
|---|---|---|
| committer | Jeffrey C Honig | 2012-12-08 16:48:20 -0500 |
| commit | ce974958f93ffa2e1bd01b4dd85dcb8ec1395787 (patch) | |
| tree | 269d772dc9dcec4917ada311889af98ce9f45bf0 | |
| parent | e3751dce51ef423d722298cf5494d27d40bced05 (diff) | |
| download | emacs-ce974958f93ffa2e1bd01b4dd85dcb8ec1395787.tar.gz emacs-ce974958f93ffa2e1bd01b4dd85dcb8ec1395787.zip | |
* mh-comp.el: Insure that mail-header-separator is set before
invoking any mml functions. (closes SF #270).
| -rw-r--r-- | lisp/mh-e/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mh-e/mh-comp.el | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 72c11db1c37..196d296fabd 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-08 Jeffrey C Honig <jch@honig.net> | ||
| 2 | |||
| 3 | * mh-comp.el: Insure that mail-header-separator is set before | ||
| 4 | invoking any mml functions. (closes SF #270). | ||
| 5 | |||
| 1 | 2012-11-25 Bill Wohler <wohler@newt.com> | 6 | 2012-11-25 Bill Wohler <wohler@newt.com> |
| 2 | 7 | ||
| 3 | * mh-e.el (mh-version): Add +bzr to version. | 8 | * mh-e.el (mh-version): Add +bzr to version. |
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index 3f2ee056bdf..03758efb29a 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el | |||
| @@ -586,6 +586,13 @@ See also `mh-compose-forward-as-mime-flag', | |||
| 586 | (mh-forwarded-letter-subject orig-from orig-subject))) | 586 | (mh-forwarded-letter-subject orig-from orig-subject))) |
| 587 | (mh-insert-fields "Subject:" forw-subject) | 587 | (mh-insert-fields "Subject:" forw-subject) |
| 588 | (goto-char (point-min)) | 588 | (goto-char (point-min)) |
| 589 | ;; Set the local value of mh-mail-header-separator according to what is | ||
| 590 | ;; present in the buffer... | ||
| 591 | (set (make-local-variable 'mh-mail-header-separator) | ||
| 592 | (save-excursion | ||
| 593 | (goto-char (mh-mail-header-end)) | ||
| 594 | (buffer-substring-no-properties (point) (mh-line-end-position)))) | ||
| 595 | (set (make-local-variable 'mail-header-separator) mh-mail-header-separator) ;override sendmail.el | ||
| 589 | ;; If using MML, translate MH-style directive | 596 | ;; If using MML, translate MH-style directive |
| 590 | (if (equal mh-compose-insertion 'mml) | 597 | (if (equal mh-compose-insertion 'mml) |
| 591 | (save-excursion | 598 | (save-excursion |