diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-03-01 16:41:09 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-03-01 16:41:09 +0100 |
commit | b2ed8a68efd8a091e8c05e4914fe093fd4a38425 (patch) | |
tree | 2c76997443eb203583b29e0e9a8bee1d05fcc770 /elisp/geiser-eval.el | |
parent | 8a320a41af2c56a1d1b09901e2eb931821984c11 (diff) | |
download | geiser-b2ed8a68efd8a091e8c05e4914fe093fd4a38425.tar.gz geiser-b2ed8a68efd8a091e8c05e4914fe093fd4a38425.tar.bz2 |
Some refactoring and new ge:macroexpand.
Diffstat (limited to 'elisp/geiser-eval.el')
-rw-r--r-- | elisp/geiser-eval.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/elisp/geiser-eval.el b/elisp/geiser-eval.el index 09f12da..ca0460f 100644 --- a/elisp/geiser-eval.el +++ b/elisp/geiser-eval.el @@ -117,6 +117,16 @@ (defsubst geiser-eval--send/result (code &optional timeout buffer) (geiser-eval--retort-result (geiser-eval--send/wait code timeout buffer))) +(defun geiser-eval--send-region (compile start end and-go) + (let* ((str (buffer-substring-no-properties start end)) + (code `(,(if compile :comp :eval) (:scm ,str))) + (ret (geiser-eval--send/wait code))) + (when and-go + (switch-to-guile) + (push-mark) + (goto-char (point-max))) + ret)) + ;;; Retort parsing: |