* [patch] make readline pay attention to the current-reader fluid
@ 2008-05-09 11:10 Andy Wingo
2008-05-09 22:30 ` Neil Jerram
0 siblings, 1 reply; 2+ messages in thread
From: Andy Wingo @ 2008-05-09 11:10 UTC (permalink / raw)
To: guile-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: git format-patch patch patch patch --]
[-- Type: text/x-patch, Size: 1043 bytes --]
From a488aa59468f60133fc8767b3ffafa2e098bda4f Mon Sep 17 00:00:00 2001
From: Andy Wingo <wingo@pobox.com>
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
[-- Attachment #2: Type: text/plain, Size: 25 bytes --]
--
http://wingolog.org/
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] make readline pay attention to the current-reader fluid
2008-05-09 11:10 [patch] make readline pay attention to the current-reader fluid Andy Wingo
@ 2008-05-09 22:30 ` Neil Jerram
0 siblings, 0 replies; 2+ messages in thread
From: Neil Jerram @ 2008-05-09 22:30 UTC (permalink / raw)
To: Andy Wingo; +Cc: guile-devel
Andy Wingo <wingo@pobox.com> writes:
>>From a488aa59468f60133fc8767b3ffafa2e098bda4f Mon Sep 17 00:00:00 2001
> From: Andy Wingo <wingo@pobox.com>
> 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.
That looks good to me, but I think we'll also need a corresponding
NEWS item and documentation. Could you add those in?
Regards,
Neil
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-09 22:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-09 11:10 [patch] make readline pay attention to the current-reader fluid Andy Wingo
2008-05-09 22:30 ` Neil Jerram
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).