Glynn Clements writes:
Philip Aston wrote:
> Is it possible to set buffer-file-coding-system-for-read to a coding
> system such that:
>
> 1. Loading a file, modifying it, and saving it does not change its EOL
> type.
>
> 2. Line breaks are auto-detected (and displayed without control
> charatcers etc).
>
> ?
>
>
> I find that 'no-coding satisfies 1 but I have to live with ^M's, and
> that every other coding system I try uses a particular, fixed, eol
> type for write. I expected 'undecided to be the answer, but this
> strips CR's from CRLF encoded files on write.
As the name implies, buffer-file-coding-system-for-read only applies
to reading the file. buffer-file-coding-system determines the EOL
convention used when writing the file.
Thanks.
So.. urmm.. same question but
s/buffer-file-coding-system-for-read/buffer-file-coding-system/g ?
Namely, what do I set (or rather set-default) it to such that eol type
is preserved?
- Phil