From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: How to get rid of annoying ^M lineendings Date: 22 Apr 2008 14:13:32 GMT Message-ID: References: <227a76ea-99a0-44cd-bb5f-e6c7b328e347@e67g2000hsa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1208875301 5137 80.91.229.12 (22 Apr 2008 14:41:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2008 14:41:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 22 16:42:07 2008 connect(): Connection refused 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 1JoJgT-0000KN-Ux for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Apr 2008 16:41:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JoJfk-0000Go-2O for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Apr 2008 10:40:40 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: individual.net vs0AUNEmjnRWQ2LfciVQhAi/4xEZz1bXx6cDWV0ToV1vkHq0hd Cancel-Lock: sha1:wXyjGI/4TSNCRreJKE6Vy1Ticdw= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/0.9.8.1 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:158110 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:53473 Archived-At: olgo wrote: > I keep reading solutions to this problem by means of substituting the > line endings with a global replace but this is not what I need. > I need for the files to be kept as they are, with all kinds of line > endings, but I don't want to see it in the editor. > > Thus, my question is: > Is there a way to tell emacs not to show the ^M character altogether? 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. -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)