diff options
| author | Eli Zaretskii | 2001-03-11 11:54:03 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-03-11 11:54:03 +0000 |
| commit | 40beeceea1293756dce90de086ae08717b118c2c (patch) | |
| tree | 4d4fe6ac6a819938469503cbecec18b43bc9e8bb | |
| parent | 5ec176363cb2082f7e80bc92f7f3f48d93165ba9 (diff) | |
| download | emacs-40beeceea1293756dce90de086ae08717b118c2c.tar.gz emacs-40beeceea1293756dce90de086ae08717b118c2c.zip | |
(rmail-output-to-rmail-file): When writing the
Babyl header to the newly-created output file, bind
coding-system-for-write to either rmail-file-coding-system or
emacs-mule-unix.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/mail/rmailout.el | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5c40581229e..364ae072fa4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2001-03-11 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * mail/rmailout.el (rmail-output-to-rmail-file): When writing the | ||
| 4 | Babyl header to the newly-created output file, bind | ||
| 5 | coding-system-for-write to either rmail-file-coding-system or | ||
| 6 | emacs-mule-unix. | ||
| 7 | |||
| 1 | 2001-03-10 Dave Love <fx@gnu.org> | 8 | 2001-03-10 Dave Love <fx@gnu.org> |
| 2 | 9 | ||
| 3 | * toolbar/tool-bar.el (tool-bar-setup): Don't suppress write-file | 10 | * toolbar/tool-bar.el (tool-bar-setup): Don't suppress write-file |
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 3b7ea24fd74..d3fd35916cd 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el | |||
| @@ -145,7 +145,10 @@ mesasge up instead of moving forward to the next non-deleted message." | |||
| 145 | (save-excursion | 145 | (save-excursion |
| 146 | (set-buffer file-buffer) | 146 | (set-buffer file-buffer) |
| 147 | (rmail-insert-rmail-file-header) | 147 | (rmail-insert-rmail-file-header) |
| 148 | (let ((require-final-newline nil)) | 148 | (let ((require-final-newline nil) |
| 149 | (coding-system-for-write | ||
| 150 | (or rmail-file-coding-system | ||
| 151 | 'emacs-mule-unix))) | ||
| 149 | (write-region (point-min) (point-max) file-name t 1))) | 152 | (write-region (point-min) (point-max) file-name t 1))) |
| 150 | (kill-buffer file-buffer)) | 153 | (kill-buffer file-buffer)) |
| 151 | (error "Output file does not exist"))) | 154 | (error "Output file does not exist"))) |