diff options
-rw-r--r-- | elisp/geiser-racket.el | 2 | ||||
-rw-r--r-- | scheme/racket/geiser/user.rkt | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el index 1c36877..24712bd 100644 --- a/elisp/geiser-racket.el +++ b/elisp/geiser-racket.el @@ -97,7 +97,7 @@ This function uses `geiser-racket-init-file' if it exists." ,@(and init-file (file-readable-p init-file) (list "-f" init-file)) "-f" ,(expand-file-name "geiser/startup.rkt" rackdir)))) -(defconst geiser-racket--prompt-regexp "\\(mzscheme\\|racket\\)@.*> ") +(defconst geiser-racket--prompt-regexp "\\(mzscheme\\|racket\\)@[^ ]*> ") (defun geiser-racket--startup (remote) (if geiser-image-cache-dir diff --git a/scheme/racket/geiser/user.rkt b/scheme/racket/geiser/user.rkt index aef1862..b7519b2 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, 2012 Jose Antonio Ortega Ruiz +;; Copyright (C) 2010, 2011, 2012, 2013 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 @@ -87,8 +87,8 @@ (define geiser-prompt (lambda () - (printf "racket@~a> " - (namespace->module-name (current-namespace) (last-entered))))) + (let ([m (namespace->module-name (current-namespace) (last-entered))]) + (printf "racket@~a> " (regexp-replace* " " m "_"))))) (define (geiser-prompt-read prompt) (make-repl-reader (geiser-read prompt))) |