diff options
author | jao <jao@gnu.org> | 2021-12-18 21:01:49 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-12-18 21:06:45 +0000 |
commit | 21dcac5de1c99bbdfd81eb5de6e50fb002be4535 (patch) | |
tree | 626cafe05f62a92ade49e461bc969201f2f9694d /elisp/geiser-eval.el | |
parent | a789a6c3132d096ac41094a81c3a2638b7a1b6fd (diff) | |
download | geiser-21dcac5de1c99bbdfd81eb5de6e50fb002be4535.tar.gz geiser-21dcac5de1c99bbdfd81eb5de6e50fb002be4535.tar.bz2 |
'debug commands so that each impl can take care of them
Diffstat (limited to 'elisp/geiser-eval.el')
-rw-r--r-- | elisp/geiser-eval.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/elisp/geiser-eval.el b/elisp/geiser-eval.el index 80a40fd..7b7ab64 100644 --- a/elisp/geiser-eval.el +++ b/elisp/geiser-eval.el @@ -69,6 +69,10 @@ module-exports, autodoc, callers, callees and generic-methods.") ;;; Code formatting: +(defsubst geiser-eval--debug (cmd) + (geiser-eval--form 'debug + (geiser-eval--scheme-str file))) + (defsubst geiser-eval--load-file (file) (geiser-eval--form 'load-file (geiser-eval--scheme-str file))) @@ -103,7 +107,8 @@ module-exports, autodoc, callers, callees and generic-methods.") ((eq code :f) "#f") ((eq code :t) "#t") ((listp code) - (cond ((eq (car code) :eval) (geiser-eval--eval (cdr code))) + (cond ((eq (car code) :debug) (geiser-eval--debug (cdr code))) + ((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))) |