summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-03-28 06:58:12 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-03-28 06:58:12 +0200
commit1d4c0a0474f8934aa989c1a03e6fd8f63cd9c899 (patch)
tree76fb164dfb1118609560d1bc08c34d34bbb17fb0
parentc58f1093970c7fb90b44c98a7cc762453e9b7936 (diff)
downloadgeiser-chez-1d4c0a0474f8934aa989c1a03e6fd8f63cd9c899.tar.gz
geiser-chez-1d4c0a0474f8934aa989c1a03e6fd8f63cd9c899.tar.bz2
PLT: Correct version check.
-rw-r--r--elisp/geiser-plt.el3
-rw-r--r--scheme/plt/geiser.ss15
2 files changed, 9 insertions, 9 deletions
diff --git a/elisp/geiser-plt.el b/elisp/geiser-plt.el
index 4fd4de3..58c38a5 100644
--- a/elisp/geiser-plt.el
+++ b/elisp/geiser-plt.el
@@ -60,7 +60,8 @@ This function uses `geiser-plt-init-file' if it exists."
,@(apply 'append (mapcar (lambda (p) (list "-S" p)) geiser-plt-collects))
,@(and (listp geiser-plt-binary) (cdr geiser-plt-binary))
,@(and init-file (file-readable-p init-file) (list "-f" init-file))
- "-f" ,(expand-file-name "plt/geiser.ss" geiser-scheme-dir))))
+ "-f" ,(expand-file-name "plt/geiser.ss" geiser-scheme-dir)
+ "-e" "(require 'geiser)")))
(defconst geiser-plt--prompt-regexp "^=?mzscheme@[^ ]*?> ")
diff --git a/scheme/plt/geiser.ss b/scheme/plt/geiser.ss
index a86b6a9..4df9b51 100644
--- a/scheme/plt/geiser.ss
+++ b/scheme/plt/geiser.ss
@@ -11,13 +11,14 @@
;;; Code:
-(require version/utils)
-(unless (version<=? "4.1.5.5" (version))
- (error 'geiser
- "Mzscheme version 4.1.5.5 or better required (found ~a)"
- (version)))
-
(module geiser scheme
+
+ (require version/utils)
+ (unless (version<=? "4.2" (version))
+ (error 'geiser
+ "Mzscheme version 4.2 or better required (found ~a)"
+ (version)))
+
(provide geiser:eval
geiser:compile
geiser:load-file
@@ -55,6 +56,4 @@
(current-prompt-read (compose (make-repl-reader (current-prompt-read))
current-namespace)))
-(require 'geiser)
-
;;; geiser.ss ends here