unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: guile-devel <guile-devel@gnu.org>
Subject: [patch] make readline pay attention to the current-reader fluid
Date: Fri, 09 May 2008 13:10:44 +0200	[thread overview]
Message-ID: <m3zlqzleob.fsf@pobox.com> (raw)

[-- 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/

             reply	other threads:[~2008-05-09 11:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-09 11:10 Andy Wingo [this message]
2008-05-09 22:30 ` [patch] make readline pay attention to the current-reader fluid Neil Jerram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3zlqzleob.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).