diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-06 21:42:09 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-06 21:42:09 +0100 |
commit | 2aad392f96e8fdf6040c3761171045e25fb0a8c9 (patch) | |
tree | 93b87ab51faeaa35300b45e7a2cc69b027a8bbf8 /elisp/geiser-racket.el | |
parent | f972d32e556e305936e4aa9f1249fe2846e07a20 (diff) | |
download | geiser-chez-2aad392f96e8fdf6040c3761171045e25fb0a8c9.tar.gz geiser-chez-2aad392f96e8fdf6040c3761171045e25fb0a8c9.tar.bz2 |
Racket: little evaluation nits
Diffstat (limited to 'elisp/geiser-racket.el')
-rw-r--r-- | elisp/geiser-racket.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el index 0508d6c..cd4cc8a 100644 --- a/elisp/geiser-racket.el +++ b/elisp/geiser-racket.el @@ -98,12 +98,12 @@ This function uses `geiser-racket-init-file' if it exists." (defun geiser-racket--geiser-procedure (proc &rest args) (case proc ((eval compile) - (format ",geiser-eval %s %s %s" + (format ",geiser-eval %s %s %s\n" (or (car args) "#f") (geiser-racket--language) (mapconcat 'identity (cdr args) " "))) ((load-file compile-file) - (format ",geiser-eval geiser/main racket (geiser:%s %s)" + (format ",geiser-eval geiser/main racket (geiser:%s %s)\n" proc (car args))) ((no-values) ",geiser-no-values") (t (format ",apply geiser:%s (%s)" proc (mapconcat 'identity args " "))))) @@ -150,7 +150,8 @@ This function uses `geiser-racket-init-file' if it exists." (format "(require %s)" module))) (defun geiser-racket--exit-command () - (not (geiser-eval--send/result '(:eval (exit) geiser/emacs)))) + (comint-send-eof) + (get-buffer-process (current-buffer))) (defconst geiser-racket--binding-forms '(for for/list for/hash for/hasheq for/and for/or |