From sean at guruhut.com Thu Aug 3 10:44:26 2006 From: sean at guruhut.com (Sean Ross) Date: Thu, 03 Aug 2006 12:44:26 +0200 Subject: [cl-ppcre-devel] cl-ppcre 1.2.12 and Lispworks 5.0 Message-ID: <44D1D38A.9070100@guruhut.com> Hi, I've just run in to a small problem with cl-ppcre-1.2.12 and Lispworks 5.0 on Windows. It appears that the conditionalised import for 'lw:with-unique-names no longer has a compile-time effect which is resulting in some load errors. I've attached a small patch which wraps the import in an eval-when. Cheers, Sean. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: import-patch.diff URL: From sean at guruhut.com Thu Aug 3 11:19:01 2006 From: sean at guruhut.com (Sean Ross) Date: Thu, 03 Aug 2006 13:19:01 +0200 Subject: [cl-ppcre-devel] cl-ppcre 1.2.12 and Lispworks 5.0 In-Reply-To: <44D1D38A.9070100@guruhut.com> References: <44D1D38A.9070100@guruhut.com> Message-ID: <44D1DBA5.8010009@guruhut.com> Ignore me. Already patched in 1.2.16 From gackle at shaw.ca Sun Aug 13 20:53:06 2006 From: gackle at shaw.ca (Daniel Gackle) Date: Sun, 13 Aug 2006 14:53:06 -0600 Subject: [cl-ppcre-devel] Replacing all matches for a given register Message-ID: <2d74e512d715e9.2d715e92d74e51@shaw.ca> I have a regex with more than one register and wish to replace each occurrence of one of those registers using a replacement function. I've written code to do this using do-scans, but it seems like there should be a simpler way. Is there? Thanks, Dan From edi at agharta.de Sun Aug 13 22:41:24 2006 From: edi at agharta.de (Edi Weitz) Date: Mon, 14 Aug 2006 00:41:24 +0200 Subject: [cl-ppcre-devel] Replacing all matches for a given register In-Reply-To: <2d74e512d715e9.2d715e92d74e51@shaw.ca> (Daniel Gackle's message of "Sun, 13 Aug 2006 14:53:06 -0600") References: <2d74e512d715e9.2d715e92d74e51@shaw.ca> Message-ID: On Sun, 13 Aug 2006 14:53:06 -0600, Daniel Gackle wrote: > I have a regex with more than one register and wish to replace each > occurrence of one of those registers using a replacement > function. I've written code to do this using do-scans, but it seems > like there should be a simpler way. Is there? Not much simpler, I think. I'd use REGEX-REPLACE with a replacement function in your case. Note that (if you don't use the "simple calls" option) your function will be called with all the information you'll need. Have you tried that? From gackle at shaw.ca Tue Aug 15 06:45:03 2006 From: gackle at shaw.ca (Daniel Gackle) Date: Tue, 15 Aug 2006 00:45:03 -0600 Subject: [cl-ppcre-devel] Replacing all matches for a given register In-Reply-To: Message-ID: <0J4100KCD1FQJW70@l-daemon> Thanks. My mistake was thinking there were two options - replacement string and simple calls - when in fact there are three, the third being the function call I'm looking for. Daniel -----Original Message----- From: Edi Weitz [mailto:edi at agharta.de] Sent: Sunday, August 13, 2006 4:41 PM To: Daniel Gackle Cc: cl-ppcre-devel at common-lisp.net Subject: Re: [cl-ppcre-devel] Replacing all matches for a given register On Sun, 13 Aug 2006 14:53:06 -0600, Daniel Gackle wrote: > I have a regex with more than one register and wish to replace each > occurrence of one of those registers using a replacement > function. I've written code to do this using do-scans, but it seems > like there should be a simpler way. Is there? Not much simpler, I think. I'd use REGEX-REPLACE with a replacement function in your case. Note that (if you don't use the "simple calls" option) your function will be called with all the information you'll need. Have you tried that?