From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Treseler Newsgroups: gmane.emacs.help Subject: Re: Hiding ^M Date: Tue, 23 Feb 2010 09:43:48 -0800 Message-ID: <7uiielFq3qU1@mid.individual.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1266950441 398 80.91.229.12 (23 Feb 2010 18:40:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2010 18:40: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 Feb 23 19:40:37 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 1NjzgT-0007GD-Cy for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2010 19:40:37 +0100 Original-Received: from localhost ([127.0.0.1]:47287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjzgS-0003FQ-UI for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2010 13:40:36 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-X-Trace: individual.net hfuHfoa/C9vVvvxOaAIfbQz6u0t3jQvkKG2rkrKQIPtDCYC0KU Cancel-Lock: sha1:FrHSSPLLQxqcWCB+S0kS0EravuM= User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: Original-Xref: news.stanford.edu gnu.emacs.help:177033 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:72072 Archived-At: =D3scar Fuentes wrote: > For buffers with certain major mode, I'll like to hide ^M characters. I= t > 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). DOS files that have been edited by many people often have mismatched carriage returns. These files should be cleaned before being used for anything. I just M-x Query replace regexp: ^M Query replace regexp ^M with: and do a few manually, then '!' for the rest. Then M-x buffer-to-dos or buffer-to-unix And all is well. -- Mike Treseler >=20