[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-chibi 6d73a7e 07/38: Catch eval and send back eval
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-chibi 6d73a7e 07/38: Catch eval and send back eval exception information |
Date: |
Sun, 1 Aug 2021 18:26:15 -0400 (EDT) |
branch: elpa/geiser-chibi
commit 6d73a7ebdd0279e8cd2e0c908d6a489fc559077c
Author: Edwin Watkeys <edw@poseur.com>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>
Catch eval and send back eval exception information
---
scheme/chibi/geiser/geiser.scm | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/scheme/chibi/geiser/geiser.scm b/scheme/chibi/geiser/geiser.scm
index 79a1b4e..96399c3 100644
--- a/scheme/chibi/geiser/geiser.scm
+++ b/scheme/chibi/geiser/geiser.scm
@@ -20,14 +20,15 @@
(define (geiser:eval module form . rest)
rest
- (let ((output (open-output-string))
- (result (if module
- (let ((mod (module-env (find-module module))))
- (eval form mod))
- (eval form))))
- (write `((result ,(write-to-string result))
- (output . ,(get-output-string output))))
- (values)))
+ (guard (err (else (write `((result ,(show #f err))))))
+ (let ((output (open-output-string))
+ (result (if module
+ (let ((mod (module-env (find-module module))))
+ (eval form mod))
+ (eval form))))
+ (write `((result ,(write-to-string result))
+ (output . ,(get-output-string output))))))
+ (values))
(define (geiser:module-completions prefix . rest)
;; (available-modules) walks the directory tree and is too slow
- [nongnu] branch elpa/geiser-chibi created (now 6f59291), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 243a860 01/38: Add preliminary support for Chibi Scheme, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi b943a99 02/38: Use faster module list, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 2ca82e6 04/38: geiser-chibi: Implement autodoc for procedures in known modules, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 6d73a7e 07/38: Catch eval and send back eval exception information,
Philip Kaludercic <=
- [nongnu] elpa/geiser-chibi 8588086 11/38: Improve geiser:eval to return output Add docstring to geiser:output., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi a672720 06/38: Add string combinators module, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 88a5b09 08/38: Add scheme subroutine to find files implementing modules to chibi., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi b260b6d 09/38: Remove debug printing. Align par-style with geiser., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 397ba42 13/38: Temporarily fix the symbol-module by appending (current-directory)., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi f52a4ec 16/38: Fix indenting and parenthesis positioning., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 2a4fb4f 10/38: Add a TODO tag about symbol-location to geiser.sld, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi c860e3a 12/38: Add error reporting about missing symbols to geiser-edit.el, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 0272694 05/38: Use (car (process-lines ...)) instead of (shell-command ...), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 41929c9 03/38: Clean-up elisp code, Philip Kaludercic, 2021/08/01