[Top][All Lists]

[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 <address@hidden> 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:

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]