[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hiding ^M
From: |
Mike Treseler |
Subject: |
Re: Hiding ^M |
Date: |
Tue, 23 Feb 2010 09:43:48 -0800 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Óscar Fuentes wrote:
> 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).
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:
<Enter>
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
>
Re: Hiding ^M,
Mike Treseler <=