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

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

Re: Problem with UNIX/DOS issue on Emacs for Windows


From: exits funnel
Subject: Re: Problem with UNIX/DOS issue on Emacs for Windows
Date: Tue, 2 Aug 2005 04:08:40 -0700 (PDT)

Thanks Jason.  I never was able to figure out why
Emacs thought the file was a UNIX file, but in any
case the steps you provided got the file straightened
out.  Thanks agains.

-exits

--- address@hidden wrote:

> exits funnel <address@hidden> writes:
> 
> > So, what's going on?  On what does emacs base the
> > determination that the one file is a unix file
> while
> > hte other is not?
> 
> The line ends are inconsistent. Or there is a ^M in
> the middle
> of a line somewhere. If this is deliberate (part of
> a string maybe),
> you should probably use "\x0d" instead.
> 
> > How can I fix it?
> 
> There may be better ways, but usually I use the
> following method to
> repair such files (do not type any spaces, they are
> just seperating
> keystrokes for clarity):
> 
> Keystrokes             Explanation
> 
> M-<                    Ensure you are starting at
> the beginning of the file.
> M-%  C-q C-m RET RET   Replace all ^M characters
> with nothing.
> C-x RET f  d o s RET   Set the file to DOS mode.
> C-x C-s                Save the repaired file.
> 
> You can omit the third step if you don't mind the
> file having Unix line
> ends.
> _______________________________________________
> Help-gnu-emacs mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
> 



                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 




reply via email to

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