From 9b76fa6e9927c09ad36fdf93bc8d1e570fcf6383 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sat, 24 Mar 2012 09:45:44 +0100 Subject: ,cd for Racket REPL It's not perfect and undocumented, but useful nonetheless. --- scheme/racket/geiser/enter.rkt | 4 +--- scheme/racket/geiser/user.rkt | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'scheme/racket') diff --git a/scheme/racket/geiser/enter.rkt b/scheme/racket/geiser/enter.rkt index dbad12b..cb33a55 100644 --- a/scheme/racket/geiser/enter.rkt +++ b/scheme/racket/geiser/enter.rkt @@ -1,6 +1,6 @@ ;;; enter.rkt -- custom module loaders -;; Copyright (C) 2010 Jose Antonio Ortega Ruiz +;; Copyright (C) 2010, 2012 Jose Antonio Ortega Ruiz ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the Modified BSD License. You should @@ -138,5 +138,3 @@ ((enter-load/use-compiled orig #t) path (mod-name mod))))))))))))))) - -;;; enter.rkt ends here diff --git a/scheme/racket/geiser/user.rkt b/scheme/racket/geiser/user.rkt index 4479b42..c8cca24 100644 --- a/scheme/racket/geiser/user.rkt +++ b/scheme/racket/geiser/user.rkt @@ -1,6 +1,6 @@ ;;; user.rkt -- global bindings visible to geiser users -;; Copyright (C) 2010, 2011 Jose Antonio Ortega Ruiz +;; Copyright (C) 2010, 2011, 2012 Jose Antonio Ortega Ruiz ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the Modified BSD License. You should @@ -76,6 +76,7 @@ [(geiser-eval) (geiser-eval)] [(geiser-no-values) (datum->syntax #f (void))] [(add-to-load-path) (add-to-load-path (read))] + [(cd) (current-directory (read))] [else form])] [_ form]))) -- cgit v1.2.3