From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "conscious" Newsgroups: gmane.emacs.help Subject: restricting query-replace to region in emacs lisp script Date: 24 Jan 2007 05:09:36 -0800 Organization: http://groups.google.com Message-ID: <1169644176.300408.69470@v33g2000cwv.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1169646121 7444 80.91.229.12 (24 Jan 2007 13:42:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Jan 2007 13:42:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 24 14:41:50 2007 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 1H9iNp-0008I8-17 for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jan 2007 14:41:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9iNo-00077a-JN for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jan 2007 08:41:48 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!v33g2000cwv.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 7 Original-NNTP-Posting-Host: 132.230.122.36 Original-X-Trace: posting.google.com 1169644191 15588 127.0.0.1 (24 Jan 2007 13:09:51 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 24 Jan 2007 13:09:51 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: v33g2000cwv.googlegroups.com; posting-host=132.230.122.36; posting-account=71icggwAAAC_BnXXtMmME2oFNz5afiGD Original-Xref: shelby.stanford.edu gnu.emacs.help:144981 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:40585 Archived-At: I am writing a lisp routine to implement a sequence of query-replace operations on a region. Before I run the query-replace I define a region, e.g. by mark-paragraph. However, other than in normal interactive operation in transient-mark-mode, the query-replace does not restrict the query-replace to the marked region. Does anybody know how to restrict the region for query-replacing with a lisp-routine?