From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: How to get rid of annoying ^M lineendings Date: Fri, 18 Jul 2014 07:44:20 +0200 Message-ID: <87r41j5ih7.fsf@web.de> References: <227a76ea-99a0-44cd-bb5f-e6c7b328e347@e67g2000hsa.googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1405662319 26161 80.91.229.3 (18 Jul 2014 05:45:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jul 2014 05:45:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 18 07:45:12 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X80ym-0007bq-5R for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jul 2014 07:45:12 +0200 Original-Received: from localhost ([::1]:48107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X80yl-0004hW-Fy for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jul 2014 01:45:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X80yN-0004Vk-Q0 for help-gnu-emacs@gnu.org; Fri, 18 Jul 2014 01:44:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X80yG-0003lo-4k for help-gnu-emacs@gnu.org; Fri, 18 Jul 2014 01:44:47 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:39128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X80yF-0003lf-Vf for help-gnu-emacs@gnu.org; Fri, 18 Jul 2014 01:44:40 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X80yE-0007RU-Bt for help-gnu-emacs@gnu.org; Fri, 18 Jul 2014 07:44:38 +0200 Original-Received: from dslb-094-217-127-201.pools.arcor-ip.net ([94.217.127.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jul 2014 07:44:38 +0200 Original-Received: from michael_heerdegen by dslb-094-217-127-201.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jul 2014 07:44:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-094-217-127-201.pools.arcor-ip.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) Cancel-Lock: sha1:UidgO/dsr5RMBQSVHDlxUEwVwfs= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98737 Archived-At: Joost Kremers writes: > IME this is only a problem when line endings in a file are not consistent. > so my advice would be to make sure each file only has one kind of line > ending, then emacs will simply detect the format correctly and will tell > you in the mode line you're editing a DOS file, and won't show the ^M > characters. And if Emacs fails to detect the coding correctly: (info "(emacs) Specify Coding") Michael.