[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to delete ^M

From: Joe Fineman
Subject: Re: How to delete ^M
Date: 12 May 2003 18:20:14 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

"Wang, Zhu" <address@hidden> writes:

> Each line of a file ended by ^M. I think this is caused by
> 'ENTER'. How can I delete them simultaneously?

I have found the following tool useful:

(defun ridm ()
  "Remove intrusive CTRL-Ms from the buffer"
    (goto-char (point-min))
    (replace-string "\C-m\C-j" "\C-j")))
---  Joe Fineman    address@hidden

||:  Be inobviously tuitive.  ||

reply via email to

[Prev in Thread] Current Thread [Next in Thread]