[Top][All Lists]

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

RE: How to delete ^M

From: Wang, Zhu
Subject: RE: How to delete ^M
Date: Mon, 12 May 2003 21:54:36 -0500

Zhu Wang

        -----Original Message----- 
        From: Joe Fineman [mailto:address@hidden 
        Sent: Mon 5/12/2003 5:20 PM 
        To: address@hidden 
        Subject: Re: How to delete ^M

        "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.  ||
        Help-gnu-emacs mailing list

reply via email to

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