From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: How to replace string for a block? Date: Tue, 26 May 2009 22:38:19 +0200 Message-ID: References: <1243369356.13000.19.camel@qi.unbc.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243370339 8853 80.91.229.12 (26 May 2009 20:38:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2009 20:38:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: w.kejia@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 26 22:38:57 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M93QD-000740-R4 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 May 2009 22:38:54 +0200 Original-Received: from localhost ([127.0.0.1]:54540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M93QC-0001YP-Ms for geh-help-gnu-emacs@m.gmane.org; Tue, 26 May 2009 16:38:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M93Pl-0001Sc-CP for help-gnu-emacs@gnu.org; Tue, 26 May 2009 16:38:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M93Pg-0001JB-RH for help-gnu-emacs@gnu.org; Tue, 26 May 2009 16:38:24 -0400 Original-Received: from [199.232.76.173] (port=50493 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M93Pg-0001J4-Jh for help-gnu-emacs@gnu.org; Tue, 26 May 2009 16:38:20 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]:36089) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M93Pg-0007PB-6u for help-gnu-emacs@gnu.org; Tue, 26 May 2009 16:38:20 -0400 Original-Received: by fxm17 with SMTP id 17so4426625fxm.42 for ; Tue, 26 May 2009 13:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5WMOpESfZUWhyWY2QQ2iGTSedjiRO8JgH9ZIyvuWPnk=; b=EuM7spONSXbGX+dhoTAtz2VXUmeWETUGUl8NqASzOBAta4YyP6gidkDbPRbWmGQ0HP ePUaMc6U0EjWj51K6Rh2Q+C1sePijTXw2uffXR9NkOfEYVBYofPdUvyhZ+KSpWqXFUvs fiUHLZEOhXBdKze9chtUvBrInV0BMXX9b9BmU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=t38DgRRqppATsObmUluKPh/V1NTl8PPq62lpaipdCa1BiAZWDZEHtBTduUa887fEwA ZQgJ5JdcgwBDw4WLFPlFRJaPZkef6CmJmTpRbMfAGodTmzM1HWtLikOZyGBAMrIQPhuU 5Mh7fBAvA5Bka2NZx447rN9/VIg67ZU3QqWZI= Original-Received: by 10.239.149.207 with SMTP id k15mr620182hbb.48.1243370299349; Tue, 26 May 2009 13:38:19 -0700 (PDT) In-Reply-To: <1243369356.13000.19.camel@qi.unbc.ca> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64743 Archived-At: On Tue, May 26, 2009 at 10:22 PM, Wu, Kejia wrote: > Hi all, > > Is there a way to perform 'M-x replace-string' only for a block? > > Thanks! Hi Kejia, 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.