This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Re: strange behavior with guile -s


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]