[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-gauche 652927a 041/119: Pass the module as a last a
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-gauche 652927a 041/119: Pass the module as a last argument to geiser: functions |
Date: |
Sun, 1 Aug 2021 18:27:54 -0400 (EDT) |
branch: elpa/geiser-gauche
commit 652927a2792e3f67134524b4107803720905d736
Author: András Simonyi <andras.simonyi@gmail.com>
Commit: András Simonyi <andras.simonyi@gmail.com>
Pass the module as a last argument to geiser: functions
---
geiser-gauche.el | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/geiser-gauche.el b/geiser-gauche.el
index 7d3fd12..71a1b5d 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))))
- (cl-case proc
- ;; Eval and compile are (module) context sensitive
- ((eval compile)
- (let ((form (mapconcat 'identity (cdr args) " "))
- (module (cond ((string-equal "'()" (car args))
- "'()")
- ((and (car args))
- (concat "'" (car args)))
- (t
- "#f"))))
- (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)))))
+ (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))))))
(defconst geiser-gauche--module-re
"(define-module +\\([[:alnum:].]+\\)")
- [nongnu] elpa/geiser-gauche b10594b 042/119: Fixes and logging, (continued)
- [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, 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 <=
- [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
- [nongnu] elpa/geiser-gauche 558a52e 034/119: Fix module-re, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 530f4f2 040/119: Add rest arguments to all geiser: procedures, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 206f5be 045/119: Lots of cleanups, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 6110849 067/119: Add dash to module name regex, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 060b7ee 062/119: Finish symbol location, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 9ffc5bd 058/119: Add comments, Philip Kaludercic, 2021/08/01