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

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

Re: After cvs, emacs does not encode file correctly as dos


From: Mark Mynsted
Subject: Re: After cvs, emacs does not encode file correctly as dos
Date: 17 Sep 2002 07:44:04 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

>>>>> "Kai" == Kai Großjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> writes:
 >> 
 Kai> What happens when you visit it normally, without C-x RET c?
 >> 
 >> The file is filled with ^M characters.

 Kai> I think you mean that C-x RET c first will give you a file which
 Kai> looks normally.  Omitting the C-x RET c will give you a file which
 Kai> contains ^M at the end of the lines.

Yes, it is exactly as you stated.

 Kai> I think that's because most lines end with ^M but not all of them
 Kai> do.  Can you look carefully whether really all lines end with
 Kai> ^M?

You are correct.  I had a line in my cvs controlled file, that
contained the cvs key word $Log$.  That key word was automatically
substituted with the cvs log for that file during the normal course
using cvs to manage the file.  Part of that "log" section, supplied by
cvs, did not contain a ^M character at the end of the line.

 Kai> Emacs does not assume DOS line endings unless all of them are DOS
 Kai> line endings.

:-D

I removed the offending log and now my file looks normal while
omitting the C-x RET c!  Thank you very much!



-- 
-MM
I rarely read email from this address          /"\
because of spam.                               \ /     ASCII Ribbon Campaign
I MAY see it if you put #NOTSPAM#               X      Against HTML Mail
in the subject line.                           / \


reply via email to

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