diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2012-08-25 06:10:05 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2012-08-25 06:10:05 +0200 |
commit | 52b7dbc9555f338dd529542e141f9938047db247 (patch) | |
tree | 4486f606a0de1d489b873b4724beb95859ac907e /elisp/geiser-racket.el | |
parent | 9b31ffba524337003c00a62997a27a62a270100e (diff) | |
download | geiser-guile-52b7dbc9555f338dd529542e141f9938047db247.tar.gz geiser-guile-52b7dbc9555f338dd529542e141f9938047db247.tar.bz2 |
Racket: reading into elisp-land the cache dir as needed
When no cache dir is set in the emacs customization, we ask Racket for
the one that it's using by default.
Diffstat (limited to 'elisp/geiser-racket.el')
-rw-r--r-- | elisp/geiser-racket.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el index 0cb4663..e000645 100644 --- a/elisp/geiser-racket.el +++ b/elisp/geiser-racket.el @@ -99,10 +99,11 @@ This function uses `geiser-racket-init-file' if it exists." (defconst geiser-racket--prompt-regexp "\\(mzscheme\\|racket\\)@[^ ]*?> ") (defun geiser-racket--startup (remote) - (when geiser-racket-image-cache-directory - (geiser-eval--send/wait - (format ",set-image-cache %S\n'done" - geiser-racket-image-cache-directory)))) + (if geiser-racket-image-cache-directory + (geiser-eval--send/wait (format ",set-image-cache %S\n'done" + geiser-racket-image-cache-directory)) + (setq geiser-racket-image-cache-directory + (geiser-eval--send/result '(:eval (image-cache) geiser/user))))) ;;; Remote REPLs |