unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Hansen <david.hansen@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: restricting query-replace to region in emacs lisp script
Date: Wed, 24 Jan 2007 15:37:49 +0100	[thread overview]
Message-ID: <87irewebia.fsf@localhorst.mine.nu> (raw)
In-Reply-To: 1169644176.300408.69470@v33g2000cwv.googlegroups.com

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	other threads:[~2007-01-24 14:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-24 13:09 restricting query-replace to region in emacs lisp script conscious
2007-01-24 14:37 ` David Hansen [this message]
2007-01-24 16:11 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87irewebia.fsf@localhorst.mine.nu \
    --to=david.hansen@gmx.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).