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

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

Re: replace regex takes long


From: Eli Zaretskii
Subject: Re: replace regex takes long
Date: Sun, 16 Apr 2006 20:11:46 +0300

> 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 via email to

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