[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mac/dos/unix newline conversion without specify from
From: |
David Kastrup |
Subject: |
Re: mac/dos/unix newline conversion without specify from |
Date: |
Wed, 05 Dec 2007 18:05:34 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
Xah Lee <xah@xahlee.org> writes:
> Xah Lee wrote:
> <<Open a unix file, do replace-string from LF to CR. Save the file.
> Then start emacs with -q, open the file. It doesn't interprete the
> file as a mac os classic file but instead display newline char as ^M.>>
>
> David Kastrup wrote:
> <<
> It does switch to Mac endings here in this case. Just tried it.
>>>
>
> mm... interesting. Here's a sample file for what's worth:
> http://xahlee.org/emacs/x-unixmacdos-eol/x1mac
That's because html-mode sets require-final-newline to t. If you reset
it to nil and then save, you get the file saved without a final
(non-Macish-looking) LF character, and it gets recognized correctly when
loading it again.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- mac/dos/unix newline conversion without specify from, Xah Lee, 2007/12/02
- Re: mac/dos/unix newline conversion without specify from, David Reitter, 2007/12/04
- Re: mac/dos/unix newline conversion without specify from, Xah Lee, 2007/12/05
- Re: mac/dos/unix newline conversion without specify from, David Kastrup, 2007/12/05
- Re: mac/dos/unix newline conversion without specify from, Xah Lee, 2007/12/05
- Re: mac/dos/unix newline conversion without specify from, David Kastrup, 2007/12/05
- Re: mac/dos/unix newline conversion without specify from, Xah Lee, 2007/12/05
- Re: mac/dos/unix newline conversion without specify from,
David Kastrup <=
- Re: mac/dos/unix newline conversion without specify from, Xah Lee, 2007/12/07
- Re: mac/dos/unix newline conversion without specify from, Stefan Monnier, 2007/12/07
- Re: mac/dos/unix newline conversion without specify from, Stefan Monnier, 2007/12/07
- Re: mac/dos/unix newline conversion without specify from, Xah Lee, 2007/12/07
- Re: mac/dos/unix newline conversion without specify from, Stefan Monnier, 2007/12/07
- Re: mac/dos/unix newline conversion without specify from, Xah Lee, 2007/12/07
- Re: mac/dos/unix newline conversion without specify from, Eli Zaretskii, 2007/12/08
- Message not available
- Re: mac/dos/unix newline conversion without specify from, Xah Lee, 2007/12/08
- Re: mac/dos/unix newline conversion without specify from, David Kastrup, 2007/12/08