mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
(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'.
This commit is contained in:
parent
c18e96c5f6
commit
aa8c69584f
2 changed files with 13 additions and 1 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
2009-01-31 Eli Zaretskii <eliz@gnu.org>
|
||||||
|
|
||||||
|
* mail/rmail.el (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'.
|
||||||
|
|
||||||
2009-01-31 Glenn Morris <rgm@gnu.org>
|
2009-01-31 Glenn Morris <rgm@gnu.org>
|
||||||
|
|
||||||
* mail/rmailsum.el (rmail-new-summary): Don't try to summarize an empty
|
* mail/rmailsum.el (rmail-new-summary): Don't try to summarize an empty
|
||||||
|
|
|
||||||
|
|
@ -919,6 +919,9 @@ Convert Babyl mail file to mbox format? ")
|
||||||
(coding-system-for-read 'raw-text))
|
(coding-system-for-read 'raw-text))
|
||||||
(erase-buffer)
|
(erase-buffer)
|
||||||
(insert-file-contents new-file)
|
(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-mode-1)
|
||||||
(rmail-perm-variables)
|
(rmail-perm-variables)
|
||||||
(rmail-variables)
|
(rmail-variables)
|
||||||
|
|
@ -1296,7 +1299,9 @@ If so restore the actual mbox message collection."
|
||||||
(setq rmail-view-buffer (rmail-generate-viewer-buffer))
|
(setq rmail-view-buffer (rmail-generate-viewer-buffer))
|
||||||
(set-buffer rmail-view-buffer)
|
(set-buffer rmail-view-buffer)
|
||||||
(setq buffer-undo-list t)
|
(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-buffer)
|
||||||
(make-local-variable 'rmail-summary-vector)
|
(make-local-variable 'rmail-summary-vector)
|
||||||
(make-local-variable 'rmail-current-message)
|
(make-local-variable 'rmail-current-message)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue