This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
[PATCH] Re: strange behavior with guile -s
- To: guile at sourceware dot cygnus dot com
- Subject: [PATCH] Re: strange behavior with guile -s
- From: "C. Ray C." <crayc at 206 dot 31 dot 63 dot 15>
- Date: Wed, 1 Mar 2000 11:18:28 -0600
- References: <20000225032207.A16979@206.31.63.15>
On Fri, Feb 25, 2000 at 03:22:07AM -0600, C. Ray C. wrote:
>
> When running a program that uses guile's regex stuff, I got this:
>
> crayc@durbin:~/src/recluse-0.2$ guile-pgsql -s start.scm
> ERROR: Unbound variable: match:start
I just needed (use-modules (ice-9 regex)) in there. Attached is a patch
to guile-doc which documents this.
Index: guile-doc/ref/scheme.texi
===================================================================
RCS file: /cvs/guile/guile/guile-doc/ref/scheme.texi,v
retrieving revision 1.45
diff -u -r1.45 scheme.texi
--- scheme.texi 1999/12/15 18:17:04 1.45
+++ scheme.texi 2000/03/01 17:11:20
@@ -2906,11 +2906,14 @@
, Syntax of Regular Expressions, emacs, The GNU Emacs Manual}, or
in many general Unix reference books.
+In order to use regular expression support, you must include the line
+@code{(use-modules (ice-9 regex))} in your program.
+
If your system does not include a POSIX regular expression library, and
you have not linked Guile with a third-party regexp library such as Rx,
these functions will not be available. You can tell whether your Guile
-installation includes regular expression support by checking whether the
-@code{*features*} list includes the @code{regex} symbol.
+installation includes regular expression support by checking whether
+the @code{*features*} list includes the @code{regex} symbol.
@menu
* Regexp Functions:: Functions that create and match regexps.