help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to replace string for a block?


From: Drew Adams
Subject: RE: How to replace string for a block?
Date: Tue, 26 May 2009 13:44:26 -0700

> > Is there a way to perform 'M-x replace-string' only for a block?
>
> Emacs documentation is your friend. Try to read the 
> documentation by doing C-h f replace-string
> It is possible to do what you want, at least in Emacs 23 
> pretest version.

It's possible in any Emacs version. Just narrow the buffer to the block first:
`C-x n n'. Widen it again after replacing: `C-x n w'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]