[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-gauche b10594b 042/119: Fixes and logging
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-gauche b10594b 042/119: Fixes and logging |
Date: |
Sun, 1 Aug 2021 18:27:54 -0400 (EDT) |
branch: elpa/geiser-gauche
commit b10594b05680605f9d67ab61338bff8fcea0206d
Author: András Simonyi <andras.simonyi@gmail.com>
Commit: András Simonyi <andras.simonyi@gmail.com>
Fixes and logging
---
geiser-gauche.el | 30 +++++++++++++++---------------
geiser.scm | 3 ++-
2 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/geiser-gauche.el b/geiser-gauche.el
index 71a1b5d..572b25c 100644
--- a/geiser-gauche.el
+++ b/geiser-gauche.el
@@ -85,21 +85,21 @@
;; (insert (format "\nGeiser PROC: %s, ARGS: %s \ntranslated to:\n" proc
args))
;; (insert (let ((form (mapconcat 'identity args " ")))
;; (format "(eval '(geiser:%s %s) (find-module 'geiser))" proc
form))))
- (let ((module (cond ((string-equal "'()" (car args))
- "'()")
- ((and (car args))
- (concat "'" (car args)))
- (t
- "#f"))))
- (cl-case proc
- ;; Eval and compile are (module) context sensitive
- ((eval compile)
- (let ((form (mapconcat 'identity (cdr args) " ")))
- (format "(eval '(geiser:eval %s '%s) (find-module 'geiser))" module
form)))
- ;; The rest of the commands are all evaluated in the geiser module
- (t
- (let ((form (mapconcat 'identity args " ")))
- (format "(eval '(geiser:%s %s %s) (find-module 'geiser))" proc form
module))))))
+ (cl-case proc
+ ;; Eval and compile are (module) context sensitive
+ ((eval compile)
+ (let ((module (cond ((string-equal "'()" (car args))
+ "'()")
+ ((and (car args))
+ (concat "'" (car args)))
+ (t
+ "#f")))
+ (form (mapconcat 'identity (cdr args) " ")))
+ (format "(eval '(geiser:eval %s '%s) (find-module 'geiser))" module
form)))
+ ;; The rest of the commands are all evaluated in the geiser module
+ (t
+ (let ((form (mapconcat 'identity args " ")))
+ (format "(eval '(geiser:%s %s) (find-module 'geiser))" proc form)))))
(defconst geiser-gauche--module-re
"(define-module +\\([[:alnum:].]+\\)")
diff --git a/geiser.scm b/geiser.scm
index 526f29f..28fc78e 100644
--- a/geiser.scm
+++ b/geiser.scm
@@ -57,7 +57,8 @@
(cut pprint (macroexpand form))))
(define (geiser:eval module-name form . rest)
- rest
+ (call-with-output-file "/tmp/gauche.log"
+ (^o (format o "FORM: ~s, REST: ~s" form rest)))
(let* ((output (open-output-string))
(module (or (and (symbol? module-name )
(find-module module-name))
- [nongnu] elpa/geiser-gauche 73346c2 066/119: Add unsupported procedures list, (continued)
- [nongnu] elpa/geiser-gauche 73346c2 066/119: Add unsupported procedures list, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 541ca86 060/119: Make eldoc work in the repl, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche f277a44 096/119: Update README.md, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 067c227 022/119: Aesthetics, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 40f4886 065/119: Implement eval error message, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 0d2827c 093/119: Minor aesthetic improvement, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 13e4030 015/119: Implement adding to load-path, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche d2ffff8 104/119: Update README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 26e3c14 105/119: Change minimum required Gauche version to 9.9, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 8908ad8 108/119: Lower require minimal version to 0.9.6, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche b10594b 042/119: Fixes and logging,
Philip Kaludercic <=
- [nongnu] elpa/geiser-gauche 30f4558 052/119: Fix no-values, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 429ad45 055/119: Add special handling for compile-file in the elisp eval proc, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 72f5107 054/119: Minor fixes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche b702719 057/119: Simplify elisp-side eval, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche bdd8976 017/119: First version with working autocomplete, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 94546ce 016/119: Add ^_ to the keyword lists, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 32b94a9 008/119: Remove diagnostic message, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 0de6385 025/119: Finish key argument handling in autodoc, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche dc40919 026/119: Correct a comment, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 652927a 041/119: Pass the module as a last argument to geiser: functions, Philip Kaludercic, 2021/08/01