[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-chez 086dbba 23/37: make chez display output and er
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-chez 086dbba 23/37: make chez display output and error messages. |
Date: |
Sun, 1 Aug 2021 18:25:58 -0400 (EDT) |
branch: elpa/geiser-chez
commit 086dbba895bdc40347de1b0bff8f77d8f10192d6
Author: Jay Xu <jay.xu.krfantasy@gmail.com>
Commit: Jay Xu <jay.xu.krfantasy@gmail.com>
make chez display output and error messages.
---
elisp/geiser-chez.el | 8 +++++++-
scheme/chez/geiser/geiser.ss | 8 ++++----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/elisp/geiser-chez.el b/elisp/geiser-chez.el
index 9a24a72..3d4b495 100644
--- a/elisp/geiser-chez.el
+++ b/elisp/geiser-chez.el
@@ -120,7 +120,13 @@ This function uses `geiser-chez-init-file' if it exists."
(geiser-eval--send/wait "(begin (import (geiser)) (write `((result )
(output . \"\"))) (newline))")))
(defun geiser-chez--display-error (module key msg)
- (and key (message msg) nil))
+ (when (stringp msg)
+ (save-excursion (insert msg))
+ (geiser-edit--buttonize-files))
+ (and (or (eq key 'chez-error-message)
+ (not key))
+ (not (zerop (length msg)))
+ msg))
;;; Implementation definition:
diff --git a/scheme/chez/geiser/geiser.ss b/scheme/chez/geiser/geiser.ss
index 70313ab..2d13952 100644
--- a/scheme/chez/geiser/geiser.ss
+++ b/scheme/chez/geiser/geiser.ss
@@ -55,10 +55,10 @@
(with-exception-handler
(lambda (e)
(k `((result "")
- (output . ,(get-output-string output-string))
- (error (key . ,(with-output-to-string
- (lambda ()
- (display-condition e))))))))
+ (output . ,(with-output-to-string
+ (lambda ()
+ (display-condition e))))
+ (error (key . chez-error-message)))))
(lambda ()
(call-with-values
;; evaluate form, allow for multiple return values,
- [nongnu] elpa/geiser-chez 6a83bee 08/37: rewritten geiser:eval to fix the following bug:, (continued)
- [nongnu] elpa/geiser-chez 6a83bee 08/37: rewritten geiser:eval to fix the following bug:, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 2fb484b 05/37: Use (car (process-lines ...)) instead of (shell-command ...), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez a5a6176 11/37: fix compile and load for chez, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 2d682c0 13/37: fix for geiser-chez-parameters, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 7bc8f62 14/37: Capture stdout in ChezScheme's eval:geiser, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 352515c 16/37: Begin the summary lines of all elisp libraries with three semicolons, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez a0f6fc3 15/37: Add rudimentary Chez support for macro expansion, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 146d4a7 18/37: Fix indentation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 9d66c63 24/37: chez: pretty printing macroexpand results., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 502b3ac 20/37: Use cl-lib instead of cl, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 086dbba 23/37: make chez display output and error messages.,
Philip Kaludercic <=
- [nongnu] elpa/geiser-chez 94296d8 25/37: files moved from original import locations, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 111ecdd 26/37: scheme load path adjustments, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 055e43d 27/37: license and readme, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez e038c28 09/37: more reduction on geiser:eval, add test, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 6eb6a92 10/37: simple geiser-chez--display-error, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 591c794 17/37: Mark the beginning of code part of elisp libraries with Code: heading, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez fcb2a6a 22/37: add extra parameter support to chez, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 21bc5bb 19/37: Delete trailing whitespace, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 6b9b733 12/37: Add geiser-chez-init-file, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 755a7cc 21/37: add extra parameter support to chez implementation, Philip Kaludercic, 2021/08/01