diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-04-26 13:50:35 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-04-26 13:50:35 +0200 |
commit | df593e60b078759d88daf98c18112821fe70a8a7 (patch) | |
tree | 614179cbd7a258d5029712cfd4cf2545591a98f2 /elisp/geiser-eval.el | |
parent | ad873e433af602e66ae1ca6da3cc07309b998879 (diff) | |
download | geiser-guile-df593e60b078759d88daf98c18112821fe70a8a7.tar.gz geiser-guile-df593e60b078759d88daf98c18112821fe70a8a7.tar.bz2 |
PLT support: basic startup and evaluation working.
Diffstat (limited to 'elisp/geiser-eval.el')
-rw-r--r-- | elisp/geiser-eval.el | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/elisp/geiser-eval.el b/elisp/geiser-eval.el index b8f971b..cc7bc35 100644 --- a/elisp/geiser-eval.el +++ b/elisp/geiser-eval.el @@ -61,22 +61,27 @@ EVAL, COMPILE, LOAD-FILE and COMPILE-FILE should be supported.")) ((listp code) (cond ((eq (car code) :eval) (geiser-eval--eval (cdr code))) ((eq (car code) :comp) (geiser-eval--comp (cdr code))) - ((eq (car code) :load-file) (geiser-eval--load-file (cadr code))) - ((eq (car code) :comp-file) (geiser-eval--comp-file (cadr code))) + ((eq (car code) :load-file) + (geiser-eval--load-file (cadr code))) + ((eq (car code) :comp-file) + (geiser-eval--comp-file (cadr code))) ((eq (car code) :module) (geiser-eval--module (cadr code))) ((eq (car code) :ge) (geiser-eval--ge (cadr code))) ((eq (car code) :scm) (cadr code)) - (t (concat "(" (mapconcat 'geiser-eval--scheme-str code " ") ")")))) + (t (concat "(" + (mapconcat 'geiser-eval--scheme-str code " ") ")")))) ((symbolp code) (format "%s" code)) (t (format "%S" code)))) (defsubst geiser-eval--eval (code) (geiser-eval--scheme-str - `(,(geiser-eval--form 'eval) (quote ,(nth 0 code)) (:module ,(nth 1 code))))) + `(,(geiser-eval--form 'eval) (quote ,(nth 0 code)) + (:module ,(nth 1 code))))) (defsubst geiser-eval--comp (code) (geiser-eval--scheme-str - `(,(geiser-eval--form 'compile) (quote ,(nth 0 code)) (:module ,(nth 1 code))))) + `(,(geiser-eval--form 'compile) + (quote ,(nth 0 code)) (:module ,(nth 1 code))))) (defsubst geiser-eval--load-file (file) (geiser-eval--scheme-str `(,(geiser-eval--form 'load-file) ,file))) @@ -153,13 +158,14 @@ EVAL, COMPILE, LOAD-FILE and COMPILE-FILE should be supported.")) (defun geiser-eval--error-str (err) (let* ((key (geiser-eval--error-key err)) + (key-str (if key (format ": %s" key) ":")) (subr (geiser-eval--error-subr err)) - (subr-str (if subr (format " (%s)" subr) "")) + (subr-str (if subr (format " (%s):" subr) ":")) (msg (geiser-eval--error-msg err)) - (msg-str (if msg (format ": %s" msg) "")) + (msg-str (if msg (format "\n %s" msg) "")) (rest (geiser-eval--error-rest err)) - (rest-str (if rest (format " %s" rest) ""))) - (format "Error%s: %s%s%s" subr-str key msg-str rest-str))) + (rest-str (if rest (format "\n %s" rest) ""))) + (format "Error%s%s%s%s" subr-str key-str msg-str rest-str))) |