emacs-devel
[Top][All Lists]
Advanced

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

Re: recording-elisp.el - try recording commands as elisp code


From: yzhh
Subject: Re: recording-elisp.el - try recording commands as elisp code
Date: Tue, 06 Nov 2007 14:12:08 +0800
User-agent: KNode/0.10.5

Juri Linkov wrote:

> 3. but the doc-string of this command says:
> 
>     This function is usually the wrong thing to use in a Lisp program.
>     What you probably want is a loop like this:
>       (while (search-forward FROM-STRING nil t)
>         (replace-match TO-STRING nil t))
>     which will run faster and will not set the mark or print anything.
> 
> So according to this guideline a Lisp program should use a loop with
> search-forward and replace-match.
 
Thanks for this. I haven't get to query-replace yet. What I have in mind is
to record also the y/n/a/q choices of the user.
-- 
   regards,
yzhh





reply via email to

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