summaryrefslogtreecommitdiff
path: root/elisp/geiser-eval.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-12-20 22:46:09 +0000
committerjao <jao@gnu.org>2021-12-20 22:46:09 +0000
commit8bc53c168e72d9ec2ce9353298c3df6d0ab59a4f (patch)
treea2d8b9dd4b9d8052a6a6d0d368efcdfdeace0d6e /elisp/geiser-eval.el
parent3ff258581804c5befd5596619b7ce85480a9f233 (diff)
downloadgeiser-8bc53c168e72d9ec2ce9353298c3df6d0ab59a4f.tar.gz
geiser-8bc53c168e72d9ec2ce9353298c3df6d0ab59a4f.tar.bz2
Asynchronous, interruptable evaluations
Diffstat (limited to 'elisp/geiser-eval.el')
-rw-r--r--elisp/geiser-eval.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/elisp/geiser-eval.el b/elisp/geiser-eval.el
index 1019e55..424d8e2 100644
--- a/elisp/geiser-eval.el
+++ b/elisp/geiser-eval.el
@@ -156,6 +156,11 @@ module-exports, autodoc, callers, callees and generic-methods.")
buffer)
geiser-eval--sync-retort)
+(defun geiser-eval-interrupt ()
+ "Interrupt on-going evaluation, if any."
+ (interactive)
+ (geiser-con--interrupt (geiser-eval--connection)))
+
;;; Retort parsing: