[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: replace-string for 1 line
From: |
B. T. Raven |
Subject: |
Re: replace-string for 1 line |
Date: |
Thu, 17 Aug 2006 11:38:14 -0500 |
"ld1976" <lior_dagan@yahoo.com> wrote in message
news:mailman.5278.1155831504.9609.help-gnu-emacs@gnu.org...
>
> Hello.
> Say I want to carry out a replace command, but just for 1 line and not
the
> rest of the docuemnt, is there a way to do that? I have looked and
couldn't
> find it.
> Thanks,
> --
> View this message in context:
http://www.nabble.com/replace-string-for-1-line-tf2121982.html#a5853003
> Sent from the Emacs - Help forum at Nabble.com.
>
>
>
Type: (prompts are in quotes)
M-%
"Query replace" string1
"with:" string2
<spacebar>
q
Point is left after 2nd instance of string1.
Ed