From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Friedrich Dominicus Newsgroups: gmane.emacs.help Subject: Re: Emacs regexp/incrementer question Date: 17 Jan 2003 13:59:31 +0100 Organization: Q Software Solutions GmbH Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87lm1kue30.fsf@fbigm.here> References: <87smvtjnlb.fsf@fbigm.here> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042808495 13481 80.91.224.249 (17 Jan 2003 13:01:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 Jan 2003 13:01:35 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ZW7p-0003VH-00 for ; Fri, 17 Jan 2003 14:01:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ZW7B-0002ZM-05 for gnu-help-gnu-emacs@m.gmane.org; Fri, 17 Jan 2003 08:00:53 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!wn12feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.nacamar.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: news.t-online.com 1042808118 01 10898 qrIHEBqTSfYNYr 030117 12:55:18 Original-X-Complaints-To: abuse@t-online.com X-Sender: 320004655587-0001@t-dialin.net User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Portable Code) Original-Xref: shelby.stanford.edu gnu.emacs.help:109071 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5599 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5599 "Tim Morley \(remove vegetable for email address\)" 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