[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-gauche b702719 057/119: Simplify elisp-side eval
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-gauche b702719 057/119: Simplify elisp-side eval |
Date: |
Sun, 1 Aug 2021 18:27:57 -0400 (EDT) |
branch: elpa/geiser-gauche
commit b702719ff58448c770bcae586bec08d2da3bcb00
Author: András Simonyi <andras.simonyi@gmail.com>
Commit: András Simonyi <andras.simonyi@gmail.com>
Simplify elisp-side eval
---
geiser-gauche.el | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/geiser-gauche.el b/geiser-gauche.el
index 62741ce..948e083 100644
--- a/geiser-gauche.el
+++ b/geiser-gauche.el
@@ -82,13 +82,12 @@
(defun geiser-gauche--geiser-procedure (proc &rest args)
;; (with-current-buffer "*scratch*"
;; (goto-char (point-max))
- ;; (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))))
+ ;; (insert (format "\nGeiser PROC: %s, ARGS: %s \n" proc args)))
(cl-case proc
- ((no-values) "(eval '(geiser:no-values) (find-module 'geiser))")
- ((load-file compile-file)
- (format "(eval '(geiser:load-file %s) (find-module 'geiser))" (car args)))
+ ;; Autodoc makes use of the {{cur-module}} cookie to handle module
+ ;; dependence
+ ((autodoc) (format "(geiser:autodoc %s {{cur-module}})"
+ (mapconcat 'identity args " ")))
;; Eval and compile are (module) context sensitive
((eval compile)
(let ((module (cond ((string-equal "'()" (car args))
@@ -98,15 +97,15 @@
(t
"#f")))
(form (mapconcat 'identity (cdr args) " ")))
- ;; {{cur-module}} is replaced by the current module for the commands
+ ;; The {{cur-module}} cookie is replaced by the current module for
+ ;; commands that need it
(replace-regexp-in-string
"{{cur-module}}" module
(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 " ")))
- ;; {{cur-module}} will be replaced by the current module when eval is
called
- (format "(eval '(geiser:%s %s {{cur-module}}) (find-module 'geiser))"
proc form)))))
+ (format "(eval '(geiser:%s %s) (find-module 'geiser))" proc form)))))
(defconst geiser-gauche--module-re
"(define-module +\\([[:alnum:].]+\\)")
- [nongnu] elpa/geiser-gauche 40f4886 065/119: Implement eval error message, (continued)
- [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, 2021/08/01
- [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 <=
- [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
- [nongnu] elpa/geiser-gauche 698a685 038/119: Fix eval and compile, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 8adaf75 037/119: Improvements, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 5d8264b 033/119: Add (commented out) debugging logging of commands in *scratch*, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche a90a648 032/119: Implement module location, Philip Kaludercic, 2021/08/01