From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: Fwd: Emacs-like file buffers Date: Mon, 15 May 2006 08:34:25 +1000 Message-ID: <87fyjctevi.fsf@zip.com.au> References: <9c4a82e00605070018l16448e72q374ae255a35fe3e3@mail.gmail.com> <87u0811wv7.fsf@trouble.defaultvalue.org> <871wv4nkx7.fsf@zip.com.au> <874q00xbqo.fsf@trouble.defaultvalue.org> <87ejyy8z96.fsf@zip.com.au> <87wtcqva5n.fsf@trouble.defaultvalue.org> <9c4a82e00605122309g6f3e061etd702479d88664b96@mail.gmail.com> <87ejyx37af.fsf@trouble.defaultvalue.org> <9c4a82e00605131824v23a934dah1404210beb57e1b3@mail.gmail.com> <9c4a82e00605131827h16d7dad5l59848987406707b1@mail.gmail.com> <4467458D.7010402@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147646132 13685 80.91.229.2 (14 May 2006 22:35:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 May 2006 22:35:32 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon May 15 00:35:29 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FfPBP-0007pn-JQ for guile-devel@m.gmane.org; Mon, 15 May 2006 00:35:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfPBP-0001Lf-6V for guile-devel@m.gmane.org; Sun, 14 May 2006 18:35:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfPBM-0001LI-Fw for guile-devel@gnu.org; Sun, 14 May 2006 18:35:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfPBL-0001L6-JP for guile-devel@gnu.org; Sun, 14 May 2006 18:35:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfPBL-0001L3-CO for guile-devel@gnu.org; Sun, 14 May 2006 18:35:23 -0400 Original-Received: from [61.8.0.84] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FfPDa-0004W1-AL; Sun, 14 May 2006 18:37:42 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout1.pacific.net.au (Postfix) with ESMTP id B1FCA367EDA; Mon, 15 May 2006 08:35:17 +1000 (EST) Original-Received: from localhost (ppp24AD.dyn.pacific.net.au [61.8.36.173]) by mailproxy2.pacific.net.au (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k4EMZFXV027829; Mon, 15 May 2006 08:35:16 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1FfPAQ-0001xp-00; Mon, 15 May 2006 08:34:26 +1000 Original-To: bkorb@gnu.org Mail-Copies-To: never In-Reply-To: <4467458D.7010402@gnu.org> (Bruce Korb's message of "Sun, 14 May 2006 07:58:21 -0700") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5928 Archived-At: Bruce Korb writes: > > #ifndef REG_BASIC > # define GUILE_REG_BASIC 0x10000 > #else > # define GUILE_REG_BASIC REG_BASIC > #endif Hmm. Yes, if you're calling scm_make_regexp you need that or something similar. (To tell it not to force REG_EXTENDED by default.) > P.S. one thing missing from the ice-9 regex functions seems to be a way > to pass such flags through to the implementing libguile functions. > Perhaps I just missed how to do it? > > (define (string-match pattern str . args) > (let ((rx (make-regexp pattern)) > (start (if (pair? args) (car args) 0))) > (regexp-exec rx str start))) Alas yes, you can't get compilation flags like regexp/newline through with string-match. I wanted that the other day and did (regexp-exec (make-regexp "..." regexp/newline) str) Maybe string-match could separate comp flags vs exec flags among its args, though I guess that'd depend on the two sets of constants being distinct ... _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel