the old one left it unspecified.
encoding to `raw-text-unix'.
(rmail-perm-variables): Set encoding of rmail-view-buffer to
`undecided-unix'.
+ (rmail-redecode-body): Don't change EOL conversion of the new
+ encoding if the old one left it unspecified.
2009-01-31 Glenn Morris <rgm@gnu.org>
;; Make sure the new coding system uses the same EOL
;; conversion, to prevent ^M characters from popping up
;; all over the place.
- (setq coding
- (coding-system-change-eol-conversion
- coding (coding-system-eol-type old-coding)))
+ (let ((eol-type (coding-system-eol-type old-coding)))
+ (if (numberp eol-type)
+ (setq coding
+ (coding-system-change-eol-conversion coding eol-type))))
;; If old-coding is `undecided', encode-coding-region
;; will not encode the text at all. Find a proper
;; non-trivial encoding to use.