On 金, 2007-03-09 at 12:10 -0500, J. S. Gangolly wrote:
> Sure you can replace just about anything coded in ascii
> using replace-string in emacs. Unfortunately, many of these
> control characters are not encoded in ascii. That is why
> you don't see them in text editors. In emacs, SR-NL shows
> up as ^M for example. However, I don't think you can
> remove them, since ^M in ascii is semantically not the same
> as Meta-M or Ctrl-M in the encoding.
Right. That's why you use the quote character to indicate an actual ^M.
As in my example:
M-x replace-string<ENTER>C-q C-m<ENTER><ENTER>
C-q (^Q) quotes the next character so it enters an actual ^M. If you
don't do that, emacs interprets the C-m (^M) the same as <ENTER>.
--
Stuart Luppescu -=-=- slu <AT> ccsr <DOT> uchicago <DOT> edu
CCSR at U of C ,.;-*^*-;., ccsr.uchicago.edu
(^_^)/ 才文と智奈美の父
Thank God I'm an atheist!
smime.p7s
Description: S/MIME cryptographic signature
|