* LF / CR problem
@ 2002-11-20 13:17 Jon Rogers
2002-11-20 14:20 ` Eli Zaretskii
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Jon Rogers @ 2002-11-20 13:17 UTC (permalink / raw)
Hello
I run the emacs version that come bundled with RedHat 8. When I load
files from my dying Mac, the new line situation is handled satisfactory,
so that files that look like crap when viewed with the "more" command
are displayed correctly.
However, when I save them from emacs, they still look the same in more.
I'd like to be able to "export" the text file so that it uses linux line
feed and not the Mac dito, just the way it looks in emacs. I guess this
is possible, but I can't understand how to do it.
/ Jon
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: LF / CR problem
@ 2002-11-20 13:39 Victor Kirk
0 siblings, 0 replies; 5+ messages in thread
From: Victor Kirk @ 2002-11-20 13:39 UTC (permalink / raw)
> However, when I save them from emacs, they still look the same in more.
> I'd like to be able to "export" the text file so that it uses linux line
> feed and not the Mac dito, just the way it looks in emacs. I guess this
> is possible, but I can't understand how to do it.
set-buffer-file-coding-system
Vic
--
This message, including attachments, is intended only for the use by the
person(s) to whom it is addressed. It may contain information which is
privileged and confidential. Copying or use by anybody else is not
authorised. If you are not the intended recipient, please contact the sender
as soon as possible. The views expressed in this communication may not
necessarily be the views held by Serco Integrated Transport.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LF / CR problem
2002-11-20 13:17 LF / CR problem Jon Rogers
@ 2002-11-20 14:20 ` Eli Zaretskii
2002-11-20 23:35 ` Richard V. Molen
2002-11-21 18:54 ` kgold
2 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2002-11-20 14:20 UTC (permalink / raw)
On Wed, 20 Nov 2002, Jon Rogers wrote:
> However, when I save them from emacs, they still look the same in more.
> I'd like to be able to "export" the text file so that it uses linux line
> feed and not the Mac dito, just the way it looks in emacs. I guess this
> is possible, but I can't understand how to do it.
C-x RET f undecided-unix RET C-x C-s
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LF / CR problem
2002-11-20 13:17 LF / CR problem Jon Rogers
2002-11-20 14:20 ` Eli Zaretskii
@ 2002-11-20 23:35 ` Richard V. Molen
2002-11-21 18:54 ` kgold
2 siblings, 0 replies; 5+ messages in thread
From: Richard V. Molen @ 2002-11-20 23:35 UTC (permalink / raw)
Jon Rogers <jon@rogers.tv> writes:
> Hello
>
> I run the emacs version that come bundled with RedHat 8. When I load
> files from my dying Mac, the new line situation is handled satisfactory,
> so that files that look like crap when viewed with the "more" command
> are displayed correctly.
>
FWIW, for a non-Emacs solution 'man mac2unix' or 'man dos2unix'.
--
Richard V. Molen
Warning!!
Signature under construction, safety glasses required.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LF / CR problem
2002-11-20 13:17 LF / CR problem Jon Rogers
2002-11-20 14:20 ` Eli Zaretskii
2002-11-20 23:35 ` Richard V. Molen
@ 2002-11-21 18:54 ` kgold
2 siblings, 0 replies; 5+ messages in thread
From: kgold @ 2002-11-21 18:54 UTC (permalink / raw)
I use eol-conversion.el, which provides functions and drop down menus
for converting to DOS, MAC, and Unix line endings.
Jon Rogers <jon@rogers.tv> writes:
> Hello
>
> I run the emacs version that come bundled with RedHat 8. When I load
> files from my dying Mac, the new line situation is handled satisfactory,
> so that files that look like crap when viewed with the "more" command
> are displayed correctly.
>
> However, when I save them from emacs, they still look the same in more.
> I'd like to be able to "export" the text file so that it uses linux line
> feed and not the Mac dito, just the way it looks in emacs. I guess this
> is possible, but I can't understand how to do it.
>
> / Jon
--
--
Ken Goldman kgold@watson.ibm.com 914-784-7646
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-11-21 18:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-20 13:17 LF / CR problem Jon Rogers
2002-11-20 14:20 ` Eli Zaretskii
2002-11-20 23:35 ` Richard V. Molen
2002-11-21 18:54 ` kgold
-- strict thread matches above, loose matches on Subject: below --
2002-11-20 13:39 Victor Kirk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).