From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Hiding ^M Date: Wed, 24 Feb 2010 08:31:30 +1100 Organization: Rapt Technologies Message-ID: <873a0r4p1p.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1266961302 12116 80.91.229.12 (23 Feb 2010 21:41:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2010 21:41:42 +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 Feb 23 22:41:38 2010 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.69) (envelope-from ) id 1Nk2Ve-0001xu-EV for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2010 22:41:38 +0100 Original-Received: from localhost ([127.0.0.1]:47232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nk2Vd-0001iW-SA for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2010 16:41:37 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.kjsl.com!news.alt.net!news-xfer.nntp.sonic.net!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) Cancel-Lock: sha1:5sGgadYWDVKpIWNYIgUavuiwmKg= Original-Lines: 39 Original-NNTP-Posting-Host: b61c92fd.news.astraweb.com Original-X-Trace: DXC=YTZBmD5OQZUI56`Z`T?X>JDBSaW^J:1TlA[]=R@R`U9dCaf`X Original-Xref: news.stanford.edu gnu.emacs.help:177039 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:72076 Archived-At: Óscar Fuentes writes: > Torsten Mueller writes: > >> Óscar Fuentes schrieb: >> >>> For buffers with certain major mode, I'll like to hide ^M >>> characters. It is not possible to remove them and adjusting the eol >>> settings of the buffer is not an option either (the lines that ends >>> with ^M are mixed with "normal" lines). >> >> Yes, if there're ^M visible at the end of lines this is a notification >> that there's a mix. I would not make them invisible. I would really >> prefer to remove them because this mix is a relict from using >> different editors who left the file in an inconsistent state. > > I agree, but the advice does not apply here because that major mode > displays a series of diffs taken from all edited files on a git working > tree. Some have crlf line endings, and they are shown as ^M. > Doesn't GIT have some sort of setting to handle this? In SVN you would set the eol-style property to something like 'native'. Then, SVN would handle eol differences automatically and ensure such differences were not considered in version diffs etc. This eliminates spurious differences caused by editors on different platforms that use different eol styles. Tim > > > -- tcross (at) rapttech dot com dot au