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

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

Re: restricting query-replace to region in emacs lisp script


From: David Hansen
Subject: Re: restricting query-replace to region in emacs lisp script
Date: Wed, 24 Jan 2007 15:37:49 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux)

On 24 Jan 2007 05:09:36 -0800 conscious wrote:

> 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?

`narrow-to-region'

David





reply via email to

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