[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: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
- How to delete ^M, Wang, Zhu, 2003/05/12
- Re: How to delete ^M, address@hidden, 2003/05/12
- Re: How to delete ^M, Joe Fineman, 2003/05/12
- Re: How to delete ^M, Eric Hanchrow, 2003/05/12
- RE: How to delete ^M, Wang, Zhu, 2003/05/12
- RE: How to delete ^M,
Wang, Zhu <=