From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: After cvs, emacs does not encode file correctly as dos Date: Mon, 16 Sep 2002 15:54:48 +0200 Organization: University of Dortmund, Germany 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-15 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1032185765 24798 127.0.0.1 (16 Sep 2002 14:16:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2002 14:16:05 +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 17qwfP-0006Qu-00 for ; Mon, 16 Sep 2002 16:15:59 +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 17qwff-0004yA-00; Mon, 16 Sep 2002 10:16:15 -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!newsfeed.freenet.de!eusc.inter.net!Informatik.Uni-Dortmund.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: lucy.cs.uni-dortmund.de Mail-Copies-To: never User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:dOiXk5L5ulXH39mWy/wFn9EDTto= Original-Xref: nntp.stanford.edu gnu.emacs.help:104944 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:1499 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1499 Mark Mynsted writes: >>>>>> "Kai" == Kai Großjohann writes: > > Kai> Mark Mynsted writes: > >> I have a file called notes.txt. It has DOS style line endings etc. > >> It is stored under linux. When I view it from Emacs all was well, > >> i.e. Emacs correctly identified it as a DOS file and used the dos > >> encoding when visiting the file. (I need the file to have the dos > >> line endings, etc.) I next started to manage the file using CVS. Now > >> the only way I can get Emacs to visit the file and display the line > >> endings, etc, correctly is to: > >> > >> C-x c dosC-x C-f ~/doc/notes.txt > > Kai> What happens when you visit it normally, without C-x RET c? > > The file is filled with ^M characters. I think you mean that C-x RET c first will give you a file which looks normally. Omitting the C-x RET c will give you a file which contains ^M at the end of the lines. I think that's because most lines end with ^M but not all of them do. Can you look carefully whether really all lines end with ^M? Emacs does not assume DOS line endings unless all of them are DOS line endings. kai -- ~/.signature is: umop 3p!sdn (Frank Nobis)