* readline-activator.scm (activate-readline): Report an error if
authorMikael Djurfeldt <djurfeldt@nada.kth.se>
Tue, 6 Jun 2000 12:41:48 +0000 (12:41 +0000)
committerMikael Djurfeldt <djurfeldt@nada.kth.se>
Tue, 6 Jun 2000 12:41:48 +0000 (12:41 +0000)
readline isn't provided by Guile.

guile-readline/readline-activator.scm

index 38adcad..42ed113 100644 (file)
@@ -1,6 +1,12 @@
 (define-module (readline-activator))
 
 (define-public (activate-readline)
+  (if (not (provided? 'readline))
+      (scm-error 'misc-error
+                'activate-readline
+                "readline is not provided in this Guile installation"
+                '()
+                '()))
   (save-module-excursion
    (lambda ()
      (define-module (guile))