* mu4e: set mail-header-separator to some sane value

This commit is contained in:
djcb
2012-11-04 20:41:09 +02:00
parent 49605bc86b
commit 2e6f8ba015
2 changed files with 5 additions and 5 deletions

View File

@ -228,11 +228,6 @@ needed, set the Fcc header, and register the handler function."
\\{message-mode-map}." \\{message-mode-map}."
(let ((message-hidden-headers mu4e~compose-hidden-headers)) (let ((message-hidden-headers mu4e~compose-hidden-headers))
(use-local-map mu4e-compose-mode-map) (use-local-map mu4e-compose-mode-map)
;; we set this here explicitly, since (as it has happened) a wrong
;; value for this (such as "") breaks address completion and other things
(set (make-local-variable 'mail-header-separator)
(purecopy "--text follows this line--"))
(make-local-variable 'message-default-charset) (make-local-variable 'message-default-charset)
;; if the default charset is not set, use UTF-8 ;; if the default charset is not set, use UTF-8
(unless message-default-charset (unless message-default-charset

View File

@ -180,6 +180,11 @@ and the body starts. Note, in `mu4e-compose-mode, we use
`before-save-hook' and `after-save-hook' to ensure that this `before-save-hook' and `after-save-hook' to ensure that this
separator is never written to the message file. Also see separator is never written to the message file. Also see
`mu4e-remove-mail-header-separator'." `mu4e-remove-mail-header-separator'."
;; we set this here explicitly, since (as it has happened) a wrong
;; value for this (such as "") breaks address completion and other things
(set (make-local-variable 'mail-header-separator)
(purecopy "--text follows this line--"))
(save-excursion (save-excursion
(let ((sepa (propertize mail-header-separator (let ((sepa (propertize mail-header-separator
'intangible t 'intangible t