unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Subject: Re: replace regex takes long
Date: Sun, 16 Apr 2006 20:11:46 +0300	[thread overview]
Message-ID: <uk69pzbql.fsf@gnu.org> (raw)
In-Reply-To: <1F82E20F-F5E5-47BD-8CB5-D30EC99C2B1A@Web.DE> (message from Peter Dyballa on Sun, 16 Apr 2006 12:17:26 +0200)

> From: Peter Dyballa <Peter_Dyballa@Web.DE>
> Date: Sun, 16 Apr 2006 12:17:26 +0200
> Cc: help-gnu-emacs@gnu.org
> 
> replace.el explains:
> 
> 	This function is usually the wrong thing to use in a Lisp program.
> 	What you probably want is a loop like this:
> 	  (while (re-search-forward REGEXP nil t)
> 	    (replace-match TO-STRING nil nil))
> 	which will run faster and will not set the mark or print anything."

This explanation is not really relevant in this case, since the OP
did, in fact, invoke query-replace-regexp interactively, not from a
Lisp program.

  reply	other threads:[~2006-04-16 17:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-15 21:29 replace regex takes long Gary Wessle
2006-04-15 22:36 ` Peter Dyballa
     [not found] ` <mailman.456.1145140624.9609.help-gnu-emacs@gnu.org>
2006-04-15 23:09   ` Gary Wessle
2006-04-15 23:35     ` Gary Wessle
2006-04-16  6:27       ` Eli Zaretskii
2006-04-16 10:17       ` Peter Dyballa
2006-04-16 17:11         ` Eli Zaretskii [this message]
     [not found]       ` <mailman.473.1145168872.9609.help-gnu-emacs@gnu.org>
2006-04-16 11:53         ` Gary Wessle
2006-04-16 14:01       ` 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=uk69pzbql.fsf@gnu.org \
    --to=eliz@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).