[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:jcf@TheWorld.com]
Sent: Mon 5/12/2003 5:20 PM
To: help-gnu-emacs@gnu.org
Cc:
Subject: Re: How to delete ^M
"Wang, Zhu" <zhuw@mail.smu.edu> 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 jcf@TheWorld.com
||: Be inobviously tuitive. ||
_______________________________________________
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 <=
- RE: How to delete ^M, Wang, Zhu, 2003/05/12