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:53:53 -0500

Thanks,
 
Zhu Wang

        -----Original Message----- 
        From: Eric Hanchrow [mailto:address@hidden 
        Sent: Mon 5/12/2003 5:59 PM 
        To: address@hidden 
        Cc: 
        Subject: Re: How to delete ^M
        
        


            Each line of a file ended by ^M. I think this is caused by
            'ENTER'. How can I delete them simultaneously?
        
        Here's what I use:
        
            (defun strip ()
              "Ensures that when the current buffer is saved, lines will not end
            with carriage returns.  Does so by setting the coding system to
            raw-text-unix."
              (interactive)
              (set-buffer-file-coding-system 'raw-text-unix))
        
        --
        
              |\      _,,,---,,_
        ZZZzz /,`.-'`'    -.  ;-;;,_
             |,4-  ) )-,_. ,\ (  `'-'
            '---''(_/--'  `-'\_) fL
                -- Igor Pechtchanski
        _______________________________________________
        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]