diff options
| author | Eli Zaretskii | 2009-01-30 14:37:32 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2009-01-30 14:37:32 +0000 |
| commit | 3951477883d9ebfed7d302b4e8aaa5b1005f7351 (patch) | |
| tree | 75b32f0f9c7e7b4bbe4d47780e58ff288978b590 | |
| parent | 07a1e794413237cc72419a965ad88f0592a69e9c (diff) | |
| download | emacs-3951477883d9ebfed7d302b4e8aaa5b1005f7351.tar.gz emacs-3951477883d9ebfed7d302b4e8aaa5b1005f7351.zip | |
(rmail-convert-babyl-to-mbox): Bind coding-system-for-read to `raw-text', and
use insert-file-contents instead of insert-file-contents-literally.
Fixes bug #2019.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d413fe36f49..e7438813949 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-01-30 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-convert-babyl-to-mbox): Bind | ||
| 4 | coding-system-for-read to `raw-text', and use insert-file-contents | ||
| 5 | instead of insert-file-contents-literally. Fixes bug #2019. | ||
| 6 | |||
| 1 | 2009-01-30 Nick Roberts <nickrob@snap.net.nz> | 7 | 2009-01-30 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 8 | ||
| 3 | * vc-hooks.el (vc-stay-local-p): Let vc-BACKEND-stay-local take | 9 | * vc-hooks.el (vc-stay-local-p): Let vc-BACKEND-stay-local take |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 79c1c3095d3..b60145c6d3a 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -915,9 +915,10 @@ Convert Babyl mail file to mbox format? ") | |||
| 915 | (write-region (point-min) (point-max) old-file) | 915 | (write-region (point-min) (point-max) old-file) |
| 916 | (unrmail old-file new-file) | 916 | (unrmail old-file new-file) |
| 917 | (message "Replacing BABYL format with mbox format...") | 917 | (message "Replacing BABYL format with mbox format...") |
| 918 | (let ((inhibit-read-only t)) | 918 | (let ((inhibit-read-only t) |
| 919 | (coding-system-for-read 'raw-text)) | ||
| 919 | (erase-buffer) | 920 | (erase-buffer) |
| 920 | (insert-file-contents-literally new-file) | 921 | (insert-file-contents new-file) |
| 921 | (rmail-mode-1) | 922 | (rmail-mode-1) |
| 922 | (rmail-perm-variables) | 923 | (rmail-perm-variables) |
| 923 | (rmail-variables) | 924 | (rmail-variables) |