help-gnu-emacs
[Top][All Lists]
Advanced

[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

Thanks,
 
Zhu Wang

        -----Original Message----- 
        From: Joe Fineman [mailto:address@hidden 
        Sent: Mon 5/12/2003 5:20 PM 
        To: address@hidden 
        Cc: 
        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"
          (interactive)
          (save-excursion
            (goto-char (point-min))
            (replace-string "\C-m\C-j" "\C-j")))
        --
        ---  Joe Fineman    address@hidden
        
        ||:  Be inobviously tuitive.  ||
        _______________________________________________
        Help-gnu-emacs mailing list
        address@hidden
        http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
        


reply via email to

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