From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mark Mynsted Newsgroups: gmane.emacs.help Subject: Re: After cvs, emacs does not encode file correctly as dos Date: 17 Sep 2002 07:44:04 -0500 Organization: Uncle John's Band Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1032267360 13989 127.0.0.1 (17 Sep 2002 12:56:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2002 12:56:00 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17rHtW-0003dM-00 for ; Tue, 17 Sep 2002 14:55:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17rHto-0008ML-00; Tue, 17 Sep 2002 08:56:16 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!outbound.vha.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: outbound.vha.com (204.68.152.1) Original-X-Trace: fu-berlin.de 1032266646 3355596 204.68.152.1 (16 [148877]) User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 Original-Xref: nntp.stanford.edu gnu.emacs.help:104977 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1532 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1532 >>>>> "Kai" == Kai Großjohann 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. / \