From: Xah Lee <xah@xahlee.org>
To: help-gnu-emacs@gnu.org
Subject: Re: mac/dos/unix newline conversion without specify from
Date: Fri, 7 Dec 2007 16:38:57 -0800 (PST) [thread overview]
Message-ID: <5cdf0ef4-3254-4a4e-b24a-6589224d6676@a35g2000prf.googlegroups.com> (raw)
In-Reply-To: jwv1w9ygmvd.fsf-monnier+gnu.emacs.help@gnu.org
Dear Stefan Monnier,
When is the last time you sucked your mom's tits?
Xah
xah@xahlee.org
\xAD\xF4 http://xahlee.org/
On Dec 7, 2:30 pm, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> > what you described wouldn't work if the file is not opened correctly.
>
> It also doesn't work if you want to cook an egg. But that's not very
> relevant, is it? As you can see in the text I quoted, I was replying to
> method that starts with "Open a unix file, ...".
>
> Stefan
>
> > 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
next prev parent reply other threads:[~2007-12-08 0:38 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-02 18:14 mac/dos/unix newline conversion without specify from Xah Lee
2007-12-04 14:18 ` David Reitter
2007-12-05 14:37 ` Xah Lee
2007-12-05 15:05 ` David Kastrup
2007-12-05 16:16 ` Xah Lee
2007-12-05 16:25 ` David Kastrup
2007-12-05 16:51 ` Xah Lee
2007-12-05 17:05 ` David Kastrup
2007-12-07 18:03 ` Xah Lee
2007-12-07 22:35 ` Stefan Monnier
2007-12-07 16:27 ` Stefan Monnier
2007-12-07 18:04 ` Xah Lee
2007-12-07 22:30 ` Stefan Monnier
2007-12-08 0:38 ` Xah Lee [this message]
2007-12-08 11:47 ` Eli Zaretskii
[not found] ` <mailman.4757.1197114470.18990.help-gnu-emacs@gnu.org>
2007-12-08 17:12 ` Xah Lee
2007-12-09 1:23 ` David Kastrup
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5cdf0ef4-3254-4a4e-b24a-6589224d6676@a35g2000prf.googlegroups.com \
--to=xah@xahlee.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.