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: How to get rid of ^M at end of line Date: Sat, 10 Oct 2009 19:14:52 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1255194930 21652 80.91.229.12 (10 Oct 2009 17:15:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2009 17:15:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 10 19:15:22 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 1MwfXN-0004m0-IW for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Oct 2009 19:15:21 +0200 Original-Received: from localhost ([127.0.0.1]:38790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwfXM-0005q5-R4 for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Oct 2009 13:15:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwfX0-0005pp-NX for help-gnu-emacs@gnu.org; Sat, 10 Oct 2009 13:14:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwfWv-0005pN-Qe for help-gnu-emacs@gnu.org; Sat, 10 Oct 2009 13:14:57 -0400 Original-Received: from [199.232.76.173] (port=33503 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwfWv-0005pK-Lr for help-gnu-emacs@gnu.org; Sat, 10 Oct 2009 13:14:53 -0400 Original-Received: from mail-ew0-f228.google.com ([209.85.219.228]:60173) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MwfWv-00036M-ER for help-gnu-emacs@gnu.org; Sat, 10 Oct 2009 13:14:53 -0400 Original-Received: by ewy28 with SMTP id 28so14995400ewy.42 for ; Sat, 10 Oct 2009 10:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=bBFWwBDqjiN1ZX1Bgnr5teLsYUa2fmFrV8b5zrJ9/WU=; b=F39l5XdRw/jfRuWBjlYT/CIQgtyqMqoRVQq4jraH9N814ZS+FTT+S9SBUFhoSUBRaN dPq2llLOkA+Di8f8DSjwyCXjUSRyZijG3nL9uR1hLZKFSYM/vMGUaxtszYDPN/cWmvWH km2DGOpkHiioFixCY4PFrbbIzhBXfSBJvgHxc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nqt+2fbFiOPiVT6ls0Nuy4JKAkNxEdOH4EZ07We08wqcCwVf3AiA9S1eEZLAFXtkbH DMYob8wUloaTI2jH7sReYVPDimC1V+8bgNJWtWTxwXrE0mpWhSuSD8je5w2YE9+VvFC4 zSrIbjG1f7vzx+MeTFyozzyoXa9yXqLsNhTXM= Original-Received: by 10.216.89.14 with SMTP id b14mr1396590wef.76.1255194892041; Sat, 10 Oct 2009 10:14:52 -0700 (PDT) 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:68812 Archived-At: Hi, 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, is this to blame for the ^M? I toggle it each time back to DOS. What should I write in my emacs init file to set Ctrl end-of-line permanently to DOS (if this is the problem)? Many thanks