Thanks, Zhu Wang -----Original Message----- From: Eric Hanchrow [mailto:offby1@blarg.net] Sent: Mon 5/12/2003 5:59 PM To: help-gnu-emacs@gnu.org 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 Help-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnu-emacs