Mercurial > emacs
changeset 101705:f6dc10ed5a92
(rmail-convert-babyl-to-mbox): Set Rmail's buffer encoding to `raw-text-unix'.
(rmail-perm-variables): Set encoding of rmail-view-buffer to `undecided-unix'.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 31 Jan 2009 09:31:52 +0000 |
parents | e011faba315e |
children | d77415a2f332 |
files | lisp/mail/rmail.el |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/rmail.el Sat Jan 31 05:32:10 2009 +0000 +++ b/lisp/mail/rmail.el Sat Jan 31 09:31:52 2009 +0000 @@ -919,6 +919,9 @@ (coding-system-for-read 'raw-text)) (erase-buffer) (insert-file-contents new-file) + ;; Rmail buffers need to be saved with Unix EOLs, or else + ;; the format will not be recognized. + (set-buffer-file-coding-system 'raw-text-unix) (rmail-mode-1) (rmail-perm-variables) (rmail-variables) @@ -1296,7 +1299,9 @@ (setq rmail-view-buffer (rmail-generate-viewer-buffer)) (set-buffer rmail-view-buffer) (setq buffer-undo-list t) - (set-buffer-multibyte t)) + (set-buffer-multibyte t) + ;; Force C-x C-s write Unix EOLs. + (set-buffer-file-coding-system 'undecided-unix)) (make-local-variable 'rmail-summary-buffer) (make-local-variable 'rmail-summary-vector) (make-local-variable 'rmail-current-message)