From: Immanuel_Litzroth AT i2 DOT com (Immanuel Litzroth) Subject: Re: HowTo find and replace NewLine (\n) with EMACS(NT) ? 16 Jan 1998 14:37:53 -0800 Message-ID: <8625658D.007888CD.00.cygnus.gnu-win32@smtpmta1.i2.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: gnu-win32 AT cygnus DOT com >>How can i find and replace NewLine (\n) with EMACS (NT) ? >Emacs uses control-Q as a quote character so you can simple type, >Ctrl-X >replace-string >Ctrl-Q >Ctrl-M >Enter Might I have spotted a small typo? Ctrl-X should be M-x I think. Also the following code will do what you want interactively. M-x query-replace C-q C-j C-q C-m And if you just want to add C-m before the newlines. M-x query-replace-regexp $ C-q C-m If you need to do this a lot put send me an email and I will send you a function to put in your .emacs that will do the replacement with one keystroke (it is not clear what you want to replace the newline with) Immanuel - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".