[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: saveplace: don't ask for coding system
From: |
Stefan Monnier |
Subject: |
Re: saveplace: don't ask for coding system |
Date: |
Tue, 04 Dec 2007 17:24:52 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
> I don't think it's better, because a lone ^M can fool Emacs even if we
> use -unix. What would help, I think, is have an explicit EOL
> conversion stated in the coding: cookie. Then the fragile guesswork
> will be bypassed.
You're right that the most important part is to specify the EOL in the
coding cookie. But I also think that it should always use `unix' EOL
when writing the file, because that's the only coding-system that's
safe: both the `dos' and the `mac' EOLs can result in data loss when the
text being saved includes ^M and ^J characters. It's minor, but if
we're going to insist on emacs-mule in place of utf-8, then we should
insist on `unix' in place of `dos' or `mac' style EOL.
Stefan
- Re: saveplace: don't ask for coding system, (continued)
- Re: saveplace: don't ask for coding system, Eli Zaretskii, 2007/12/03
- Re: saveplace: don't ask for coding system, Karl Fogel, 2007/12/03
- Re: saveplace: don't ask for coding system, Eli Zaretskii, 2007/12/03
- Re: saveplace: don't ask for coding system, Karl Fogel, 2007/12/04
- Re: saveplace: don't ask for coding system, Eli Zaretskii, 2007/12/04
- Re: saveplace: don't ask for coding system, Juanma Barranquero, 2007/12/04
- Re: saveplace: don't ask for coding system, Eli Zaretskii, 2007/12/04
- Re: saveplace: don't ask for coding system,
Stefan Monnier <=
- Re: saveplace: don't ask for coding system, Eli Zaretskii, 2007/12/04
- Re: saveplace: don't ask for coding system, Juanma Barranquero, 2007/12/05
- Re: saveplace: don't ask for coding system, Eli Zaretskii, 2007/12/05
- Re: saveplace: don't ask for coding system, Juanma Barranquero, 2007/12/05
- Re: saveplace: don't ask for coding system, Eli Zaretskii, 2007/12/05
- Re: saveplace: don't ask for coding system, Juanma Barranquero, 2007/12/06
- Re: saveplace: don't ask for coding system, Juanma Barranquero, 2007/12/04
- Re: saveplace: don't ask for coding system, Richard Stallman, 2007/12/04