From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bar tomas Newsgroups: gmane.emacs.help Subject: Re: How to get rid of ^M at end of line Date: Sun, 11 Oct 2009 16:03:19 +0200 Message-ID: References: <83hbu7jevz.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1255269849 26423 80.91.229.12 (11 Oct 2009 14:04:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Oct 2009 14:04:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 11 16:04:00 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mwz1k-0005Yg-6m for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Oct 2009 16:04:00 +0200 Original-Received: from localhost ([127.0.0.1]:37575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mwz1j-0001Kk-Qc for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Oct 2009 10:03:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mwz1F-0001JU-9l for help-gnu-emacs@gnu.org; Sun, 11 Oct 2009 10:03:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mwz19-0001Fh-8W for help-gnu-emacs@gnu.org; Sun, 11 Oct 2009 10:03:27 -0400 Original-Received: from [199.232.76.173] (port=40898 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mwz18-0001FU-Jc for help-gnu-emacs@gnu.org; Sun, 11 Oct 2009 10:03:23 -0400 Original-Received: from mail-ew0-f228.google.com ([209.85.219.228]:43392) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mwz16-0008O4-EQ; Sun, 11 Oct 2009 10:03:20 -0400 Original-Received: by ewy28 with SMTP id 28so15427192ewy.42 for ; Sun, 11 Oct 2009 07:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=+EI+UTtCVUDJwROzQ+y35IQ6pkq5PkFuERjGc+8AN6c=; b=qJnJEsf5SWBhbPgNqP8p71VaesCqOBmbfvzHQVgPYDkIDy2D1ODroJhvei51qDAWt7 3g4mxnpdZwH1SyhOQg6SvXJJdn3VcFspWWTbytGCbUsxJQZEcRqd8RCEN274ahqcwcHc SwOOYVconeVlghuY9uMrSMxavmVaBDvbYqjGM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=LwFfJAbmUIb6grGDX8xttt9NpJ5XMNWL8ZW9Ys9uyPA8BKYNU2mQBEHtdGOjfCOp5d XM0tIB+kFva2A/nvyLtgffrfoFXQEhk5yt7a8ZahGc3u2G/AG83ErC4eASV1RmQNDHOI AfsCX+E+WIlm+Gztpu2pVGrID6xga3pG3zneg= Original-Received: by 10.216.89.137 with SMTP id c9mr1639946wef.228.1255269799588; Sun, 11 Oct 2009 07:03:19 -0700 (PDT) In-Reply-To: <83hbu7jevz.fsf@gnu.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68829 Archived-At: Many thanks! On 10/10/09, Eli Zaretskii wrote: > > Date: Sat, 10 Oct 2009 19:14:52 +0200 > > From: bar tomas > > > > > I'm working on windows xp, and I get ^M characters at the end of each > > line- In fact, every time I open the document I get an additional ^M > > at the end of each line. I've tried to use Replace '^M', but it > > doesn't work (replaces nothing) > > I've noticed that Ctrl end-of-line is set to Unix when I start Emacs, > > > Does this (the "Unix" EOL mode-line indicator and the ^M characters) > happen to you in "emacs -Q"? (They shouldn't.) If in "emacs -Q" the > problem goes away, something in your .emacs init file causes this. > > > > What should I write in my emacs init file to set Ctrl end-of-line > > permanently to DOS (if this is the problem)? > > > It's rather what you should NOT write in the init file, I think. > Emacs by default preserves the EOL format of existing files, so it > should set EOL to -dos when it visits a file automatically. > > >