diff options
author | jao <jao@gnu.org> | 2021-12-22 02:14:53 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-12-22 02:14:53 +0000 |
commit | 8a15da8ce1d1c7f4db1f7be20dec0db31ef711d4 (patch) | |
tree | 666c0d4597a5fa15dfc67e27df206470fa0e899c /elisp | |
parent | 2230f8e1c68697bd09619071a45b8438eacbc4e4 (diff) | |
download | geiser-8a15da8ce1d1c7f4db1f7be20dec0db31ef711d4.tar.gz geiser-8a15da8ce1d1c7f4db1f7be20dec0db31ef711d4.tar.bz2 |
Asynchronous file load/compile
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-compile.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/elisp/geiser-compile.el b/elisp/geiser-compile.el index 1c2a1de..d43cabb 100644 --- a/elisp/geiser-compile.el +++ b/elisp/geiser-compile.el @@ -1,4 +1,4 @@ -;;; geiser-compile.el -- compile/load scheme files +;;; geiser-compile.el -- compile/load scheme files -*- lexical-binding: t; -*- ;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2016, 2018, 2021 Jose Antonio Ortega Ruiz @@ -41,10 +41,11 @@ (buffer (car b/p)) (path (cdr b/p)) (msg (format "%s %s ..." msg path)) - (code `(,(if compile-p :comp-file :load-file) ,path))) + (code `(,(if compile-p :comp-file :load-file) ,path)) + (cont (lambda (ret) (geiser-compile--display-result msg ret)))) (message msg) (geiser-autodoc--clean-cache) - (geiser-compile--display-result msg (geiser-eval--send/wait code)))) + (geiser-eval--send code cont))) ;;; User commands: |