From a488aa59468f60133fc8767b3ffafa2e098bda4f Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 9 May 2008 13:07:32 +0200 Subject: [PATCH] make readline's `repl-reader' impl check the current-reader fluid * guile-readline/ice-9/readline.scm (activate-readline): Use the current binding of the current-reader fluid, if it is available. --- guile-readline/ice-9/readline.scm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/guile-readline/ice-9/readline.scm b/guile-readline/ice-9/readline.scm index 363b7c0..dce7755 100644 --- a/guile-readline/ice-9/readline.scm +++ b/guile-readline/ice-9/readline.scm @@ -212,7 +212,7 @@ (set-buffered-input-continuation?! (readline-port) #f) (set-readline-prompt! prompt "... ") (set-readline-read-hook! read-hook)) - (lambda () (read)) + (lambda () ((or (fluid-ref current-reader) read))) (lambda () (set-readline-prompt! "" "") (set-readline-read-hook! #f))))) -- 1.5.5-rc2.GIT