help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Editing a windows file under Linux


From: Jorgen Grahn
Subject: Re: Editing a windows file under Linux
Date: Wed, 28 Mar 2012 19:22:49 -0000
User-agent: slrn/pre1.0.0-18 (Linux)

On Thu, 2011-09-08, Cecil Westerhof wrote:
> I have defined a function to convert a buffer to Windows format. But
> when I edit it again I need to remember to run the function again. Is
> there a way to edit a file and keep the windows format? (^M^J)
>
> I also wrote functions to convert to Unix and Apple. Would people be
> interested in those functions?

Not really -- Emacs has plenty of support.  Others explained that. One
thing I use sometimes with broken files is
M-x universal-coding-system-argument, or

C-x RET c

and then I might say 'dos' and then open a file, forcing Emacs to
assume it has DOS line endings.

BTW, I thought MacOS stopped doing their own funny line endings about
a decade ago?  Wikipedia knows, of course; I'm too lazy to check.

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .     .
\X/     snipabacken.se>   O  o   .


reply via email to

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