[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-chicken 44a571f 068/102: Removed more unused code,
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-chicken 44a571f 068/102: Removed more unused code, speeding things up. |
Date: |
Sun, 1 Aug 2021 18:26:57 -0400 (EDT) |
branch: elpa/geiser-chicken
commit 44a571f9b08648d8deec5a01868c664b64acd012
Author: Dan Leslie <dan@ironoxide.ca>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>
Removed more unused code, speeding things up.
---
geiser/{emacs.scm => chicken4.scm} | 0
geiser/chicken5.scm | 41 +++++---------------------------------
2 files changed, 5 insertions(+), 36 deletions(-)
diff --git a/geiser/emacs.scm b/geiser/chicken4.scm
similarity index 100%
rename from geiser/emacs.scm
rename to geiser/chicken4.scm
diff --git a/geiser/chicken5.scm b/geiser/chicken5.scm
index f5f0c30..4ef110e 100644
--- a/geiser/chicken5.scm
+++ b/geiser/chicken5.scm
@@ -111,7 +111,7 @@
(if val (func val) #f))
;; Wraps output from geiser functions
- (define (call-with-result module thunk)
+ (define (call-with-result thunk)
(let* ((result (if #f #f))
(output (if #f #f)))
@@ -209,52 +209,21 @@
;; Geiser core functions
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Basically all non-core functions pass through geiser-eval
-
- (define (form-has-safe-geiser? form)
- (any (cut eq? (car form) <>)
- '(geiser-no-values geiser-newline geiser-completions
- geiser-autodoc geiser-object-signature geiser-symbol-location
- geiser-symbol-documentation geiser-module-exports
- geiser-module-path geiser-module-location
- geiser-module-completions geiser-chicken-use-debug-log)))
-
- (define (form-has-any-geiser? form)
- (string-has-prefix? (->string (car form)) "geiser-"))
-
- (define (form-defines-any-module? form)
- (or
- ;; Geiser seems to send buffers as (begin ..buffer contents..)
- (and (eq? (car form) 'begin)
- (form-defines-any-module? (cadr form)))
- (any (cut eq? (car form) <>)
- '(module define-library))))
-
(define (geiser-eval module form . rest)
(when (and module (not (symbol? module)))
(error "Module should be a symbol"))
;; All calls start at toplevel
- (let* ((is-safe-geiser? (form-has-safe-geiser? form))
- (host-module (and (not is-safe-geiser?)
- (not (form-has-any-geiser? form))
- (not (form-defines-any-module? form))
- module))
- (thunk (lambda () (eval form))))
-
- (write-to-log `[[REQUEST host-module: ,host-module]])
+ (let* ((thunk (lambda () (eval form))))
(write-to-log form)
-
- (if is-safe-geiser?
- (call-with-result #f thunk)
- (call-with-result host-module thunk))))
+ (call-with-result thunk)))
;; Load a file
(define (geiser-load-file file)
(let* ((file (if (symbol? file) (symbol->string file) file))
(found-file (geiser-find-file file)))
- (call-with-result #f
+ (call-with-result
(lambda ()
(when found-file
(load found-file))))))
@@ -355,7 +324,7 @@
(directory (if (not (equal? #\/ (string-ref directory (-
(string-length directory)))))
(string-append directory "/")
directory)))
- (call-with-result #f
+ (call-with-result
(lambda ()
(when (directory-exists? directory)
(geiser-chicken-load-paths (cons directory
(geiser-chicken-load-paths))))))))
- [nongnu] elpa/geiser-chicken 752b9b2 035/102: Minor improvements, (continued)
- [nongnu] elpa/geiser-chicken 752b9b2 035/102: Minor improvements, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 58ecefe 043/102: Completions didn't work after first symbol in sexp, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken fb5baa4 042/102: No longer show arguments as strings., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 78ce429 055/102: Adds required modules to binary parameters, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken b779e7e 057/102: Allows Chicken to limit the number of symbols provided to Geiser, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 4e5c66b 060/102: Support Chicken Scheme apropos =>2.3.0, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken ff59903 061/102: Improvements to Chicken completion speed, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken d9e6778 063/102: Remove memoization, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 3c77b8b 064/102: Make geiser-chicken-required-modules customizable (#233), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken fb9ddca 066/102: Chicken 5 works with Geiser, many features removed, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 44a571f 068/102: Removed more unused code, speeding things up.,
Philip Kaludercic <=
- [nongnu] elpa/geiser-chicken aecb324 067/102: Version check is 4.x compatible again, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 50ddd07 070/102: Much faster completions for Chicken 5; less errors in the log., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 12c74dc 073/102: Use string-equal instead of equalp, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 481fa76 077/102: More accurate Chicken completions, inspired by breadline, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken cc768c6 079/102: whitespace, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken eb06d1e 082/102: Fix indentation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 30957df 083/102: Fix indentation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 8e3719e 084/102: Delete trailing whitespace, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken ae856e7 085/102: Use cl-lib instead of cl, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken bdef28d 087/102: Change geiser-eval to accept lists as module name (C5), Philip Kaludercic, 2021/08/01