summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-10-15 03:33:46 +0100
committerjao <jao@gnu.org>2022-10-15 03:33:46 +0100
commite0e651c29daa86fefe5125c6d5256cc0bdbcc03d (patch)
tree8b4716907c9514d98aa4b6e26246e9a9e28b74ec
parent4fd0a65645fda5a775f939f36e2e2cdb98f54b73 (diff)
downloadgeiser-chez-e0e651c29daa86fefe5125c6d5256cc0bdbcc03d.tar.gz
geiser-chez-e0e651c29daa86fefe5125c6d5256cc0bdbcc03d.tar.bz2
little simplifications
-rw-r--r--geiser-chez.el7
-rw-r--r--src/geiser/geiser.ss5
2 files changed, 3 insertions, 9 deletions
diff --git a/geiser-chez.el b/geiser-chez.el
index d9ad5eb..7443461 100644
--- a/geiser-chez.el
+++ b/geiser-chez.el
@@ -136,12 +136,7 @@ Return its local name."
(defun geiser-chez--geiser-procedure (proc &rest args)
"Transform PROC in string for a scheme procedure using ARGS."
(cl-case proc
- ((eval compile)
- (let ((form (mapconcat 'identity (cdr args) " "))
- (module (cond ((string-equal "'()" (car args)) "'()")
- ((car args) (concat "'" (car args)))
- (t "#f"))))
- (format "(geiser:eval %s '%s)" module form)))
+ ((eval compile) (format "(geiser:eval '%s '%s)" (car args) (cadr args)))
((load-file compile-file) (format "(geiser:load-file %s)" (car args)))
((no-values) "(geiser:no-values)")
(t (let ((form (mapconcat 'identity args " ")))
diff --git a/src/geiser/geiser.ss b/src/geiser/geiser.ss
index ba5d616..e508ce2 100644
--- a/src/geiser/geiser.ss
+++ b/src/geiser/geiser.ss
@@ -239,9 +239,8 @@
`(("file" . ,(with-extension obj (car exts)))))
(else (loop (cdr exts)))))))
- (define (geiser:no-values) #f)
-
- (define (geiser:newline) #f)
+ (define geiser:no-values void)
+ (define geiser:newline newline)
(define (geiser:macroexpand form . rest)
(with-output-to-string