[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mac/dos/unix newline conversion without specify from
From: |
Xah Lee |
Subject: |
Re: mac/dos/unix newline conversion without specify from |
Date: |
Fri, 7 Dec 2007 10:04:58 -0800 (PST) |
User-agent: |
G2/1.0 |
what you described wouldn't work if the file is not opened correctly.
in particular, open a file with CR as line return but containing a LF
as the last char. Then, open it in emacs and emacs will show ^M. At
this point, changing the encoding as you described only changes the
last char.
Xah
On Dec 7, 8:27 am, Stefan Monnier <monn...@iro.umontreal.ca> 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.
>
> That's a good method if you like to get into trouble.
>
> For those who prefer to do things right, then you can C-x RET f mac RET
> and then C-x C-s, or alternatively just click twice on the ":" in the
> left part of the mode line (the first time makes it change from unix to
> dos, the second from dos to mac).
>
> Stefan
- Re: mac/dos/unix newline conversion without specify from, (continued)
- 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, 2007/12/05
- 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 <=
- 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