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

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

Re: Emacs regexp/incrementer question


From: Friedrich Dominicus
Subject: Re: Emacs regexp/incrementer question
Date: 17 Jan 2003 13:59:31 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Portable Code)

"Tim Morley \(remove vegetable for email address\)" <tim@teamlog.turnip.com> 
writes:

> Hi Friedrich.
> 
> I'm no lisp hacker at all, so thanks very much for the copy-and-paste
> solution. Unfortunately I'm having trouble persuading it to work on my
> machine. (Win2K, GNU Emacs 20.3.1)
> 
> I even copyied-and-pasted the example from your post to be sure  :o),  did a
> M-x replace-with-changing-replacement, and entered the pattern and the
> replacement. On finding the first 'foo' though, the function stopped with
> the error : "Symbol's function definition is void: incf".
Just put a (require 'cl) before that function or even better put it in
the first place of your .emacs file. Or replace it with
(setq i (1+ i)) or (setq i (+ i 1)) or write a macro for it ;-)

> As I said, I don't
> know lisp at all -- is it just a typo? If not, do you have a suggestion as
> to how I might resolve this?
Done see above ;-)

Regards
Friedrich


reply via email to

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