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.
--
Glynn Clements <glynn.clements(a)virgin.net>