all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Siegfried Heintze" <siegfried@heintze.com>
Subject: Re: Query-replace is misbehaving!
Date: Wed, 4 Sep 2002 22:32:06 -0600	[thread overview]
Message-ID: <undnietfbre014@corp.supernews.com> (raw)
In-Reply-To: gexd9.169256$8aG1.117958@news01.bloor.is.net.cable.rogers.com

Is there an error in the documentation at
http://www.gnu.org/manual/elisp-manual-21-2.8/html_mono/elisp.html?

If so, were is the correct documentation?
    Thanks,
                Siegfried
----------------------------------------------------------------------------
------------------

Function: perform-replace from-string replacements start end query-flag
regexp-flag delimited-flag &optional repeat-count map
This function is the guts of query-replace and related commands. It searches
for occurrences of from-string in the text between positions start and end
and replaces some or all of them. If start is nil, point is used instead,
and the buffer's end is used for end.

If query-flag is nil, it replaces all occurrences; otherwise, it asks the
user what to do about each one.

If regexp-flag is non-nil, then from-string is considered a regular
expression; otherwise, it must match literally. If delimited-flag is
non-nil, then only replacements surrounded by word boundaries are
considered.

The argument replacements specifies what to replace occurrences with. If it
is a string, that string is used. It can also be a list of strings, to be
used in cyclic order.

If replacements is a cons cell, (function . data), this means to call
function after each match to get the replacement text. This function is
called with two arguments: data, and the number of replacements already
made.

If repeat-count is non-nil, it should be an integer. Then it specifies how
many times to use each of the strings in the replacements list before
advancing cyclicly to the next one.

If from-string contains upper-case letters, then perform-replace binds
case-fold-search to nil, and it uses the replacements without altering the
case of them.

Normally, the keymap query-replace-map defines the possible user responses
for queries. The argument map, if non-nil, is a keymap to use instead of
query-replace-map.

  parent reply	other threads:[~2002-09-05  4:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-04 22:39 Query-replace is misbehaving! Siegfried Heintze
2002-09-04 23:07 ` lawrence mitchell
     [not found] ` <gexd9.169256$8aG1.117958@news01.bloor.is.net.cable.rogers.com>
2002-09-05  4:32   ` Siegfried Heintze [this message]
2002-09-05  4:59     ` Henrik Enberg
2002-09-05  9:20     ` John McCabe

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

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

  git send-email \
    --in-reply-to=undnietfbre014@corp.supernews.com \
    --to=siegfried@heintze.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.