Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Oct 2006 16:20:49 -0700
From:      Noah <admin2@enabled.com>
To:        "Peter A. Giessel" <pgiessel@mac.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: replacing ^M with emacs
Message-ID:  <45429451.3040706@enabled.com>
In-Reply-To: <4542607E.8020101@mac.com>
References:  <45425D61.6030209@enabled.com> <4542607E.8020101@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
this is the best answer.  Hits it right on the head of what I want.  
What if I want the character to replace the ^M with a new line what do I 
enter in the replace field?

cheers,

Noah


Peter A. Giessel wrote:
> On 2006/10/27 11:26, Noah seems to have typed:
>   
>> How might I get emacs to search replace
>>     
>
> Put a mark right before the character (control-space) move to right
> after the character and cut the character (control-w).  Move to the top
> of the document (esc-<) and start a "query replace" (esc-%).  Yank in
> the character that you previously cut (control-y).  Hit return (or enter)
> type in the character that you want to replace the ^M with, hit return
> (or enter) again.  Enter "y" or "n" for each case...
>   



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45429451.3040706>