From: Mark Mynsted <mmynsted_news@gbronline.com>
Subject: Re: After cvs, emacs does not encode file correctly as dos
Date: 17 Sep 2002 07:44:04 -0500 [thread overview]
Message-ID: <m2bs6wpyzv.fsf@mmynsted.corp.vha.com> (raw)
In-Reply-To: vafelbu6nvb.fsf@lucy.cs.uni-dortmund.de
>>>>> "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. / \
next prev parent reply other threads:[~2002-09-17 12:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-10 13:41 After cvs, emacs does not encode file correctly as dos Mark Mynsted
2002-09-10 13:49 ` Kai Großjohann
2002-09-16 13:07 ` Mark Mynsted
2002-09-16 13:54 ` Kai Großjohann
2002-09-17 12:44 ` Mark Mynsted [this message]
2002-09-17 13:17 ` Stefan Monnier <foo@acm.com>
2002-09-18 12:46 ` Mark Mynsted
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2bs6wpyzv.fsf@mmynsted.corp.vha.com \
--to=mmynsted_news@gbronline.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).