From c633fbb06cd9dae6001b629697326a3476e7f3ca Mon Sep 17 00:00:00 2001 From: Dan Leslie Date: Sat, 5 Dec 2015 08:33:47 -0800 Subject: Minor cleanup Exposes geiser-load-paths, makes add-to-load-path and find-file 'unsafe'. Those needn't be memoized and would be strange if they are. This should finish fixing jaor/geiser#114 --- scheme/chicken/geiser/emacs.scm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'scheme') diff --git a/scheme/chicken/geiser/emacs.scm b/scheme/chicken/geiser/emacs.scm index 377c4d3..aca0e04 100644 --- a/scheme/chicken/geiser/emacs.scm +++ b/scheme/chicken/geiser/emacs.scm @@ -25,7 +25,8 @@ geiser-module-location geiser-module-completions geiser-macroexpand - geiser-use-debug-log) + geiser-use-debug-log + geiser-load-paths) (import chicken scheme) (use @@ -476,8 +477,8 @@ (any (cut eq? (car form) <>) '(geiser-no-values geiser-newline geiser-completions geiser-autodoc geiser-object-signature geiser-symbol-location - geiser-symbol-documentation geiser-find-file geiser-add-to-load-path - geiser-module-exports geiser-module-path geiser-module-location + geiser-symbol-documentation geiser-module-exports + geiser-module-path geiser-module-location geiser-module-completions geiser-use-debug-log))) (define (form-has-any-geiser? form) @@ -506,7 +507,7 @@ module)) (thunk (lambda () (eval form)))) - (write-to-log `[[REQUEST]]) + (write-to-log `[[REQUEST host-module: ,host-module]]) (write-to-log form) (if is-safe-geiser? @@ -606,10 +607,10 @@ ;; File and Buffer Operations ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - (define geiser-load-paths (make-parameter '())) + (define geiser-load-paths (make-parameter '("" "."))) (define (geiser-find-file file . rest) - (let ((paths (append '("" ".") (geiser-load-paths)))) + (let ((paths (geiser-load-paths))) (define (try-find file paths) (cond ((null? paths) #f) -- cgit v1.2.3