From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.user Subject: Re: string-match error Date: Wed, 15 Jan 2014 16:28:18 -0500 Message-ID: <87r489rl3h.fsf@netris.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389821462 11635 80.91.229.3 (15 Jan 2014 21:31:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2014 21:31:02 +0000 (UTC) Cc: guile-user@gnu.org To: Ariel Rios Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jan 15 22:31:08 2014 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W3Y3H-0000br-9t for guile-user@m.gmane.org; Wed, 15 Jan 2014 22:31:07 +0100 Original-Received: from localhost ([::1]:57307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Y3G-0001Vm-To for guile-user@m.gmane.org; Wed, 15 Jan 2014 16:31:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Y34-0001Up-0v for guile-user@gnu.org; Wed, 15 Jan 2014 16:30:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3Y2y-0004YO-76 for guile-user@gnu.org; Wed, 15 Jan 2014 16:30:53 -0500 Original-Received: from world.peace.net ([96.39.62.75]:50800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Y2y-0004YJ-37; Wed, 15 Jan 2014 16:30:48 -0500 Original-Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=yeeloong) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1W3Y2n-0005TL-9j; Wed, 15 Jan 2014 16:30:37 -0500 In-Reply-To: (Ariel Rios's message of "Wed, 15 Jan 2014 14:33:10 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 96.39.62.75 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11018 Archived-At: Ariel Rios writes: > Hello y'all, > > I am having problems using string-match. I have created a small script > that calls string-match and I get: > > /home/ariel/console/mce/tests/./panda.scm:4:9: In procedure > module-lookup: Unbound variable: string-match As it says in the "Regular Expressions" section of the manual: "Before using the described functions, you should load this module by executing `(use-modules (ice-9 regex))'." > If I start guile and then use string-match there is no problem: > scheme@(guile-user)> (string-match "a" "a") > $1 = #("a" (0 . 1)) It seems that the REPL starts with (ice-9 regex) loaded by default. Regards, Mark