From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#11198: problems reading data with a "read-hash-extend" registered reader Date: Mon, 09 Apr 2012 23:10:14 +0200 Message-ID: <87zkaka9xl.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1334005879 2272 80.91.229.3 (9 Apr 2012 21:11:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Apr 2012 21:11:19 +0000 (UTC) Cc: 11198@debbugs.gnu.org To: Klaus Stehle Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Apr 09 23:11:16 2012 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SHLri-0007zA-Mb for guile-bugs@m.gmane.org; Mon, 09 Apr 2012 23:11:10 +0200 Original-Received: from localhost ([::1]:39143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHLri-0002EV-0G for guile-bugs@m.gmane.org; Mon, 09 Apr 2012 17:11:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHLrf-0002Bv-9c for bug-guile@gnu.org; Mon, 09 Apr 2012 17:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHLrd-0000DK-L8 for bug-guile@gnu.org; Mon, 09 Apr 2012 17:11:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHLrd-0000DB-HJ for bug-guile@gnu.org; Mon, 09 Apr 2012 17:11:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SHLsY-0002wa-G0 for bug-guile@gnu.org; Mon, 09 Apr 2012 17:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 09 Apr 2012 21:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11198 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 11198-submit@debbugs.gnu.org id=B11198.133400587911262 (code B ref 11198); Mon, 09 Apr 2012 21:12:02 +0000 Original-Received: (at 11198) by debbugs.gnu.org; 9 Apr 2012 21:11:19 +0000 Original-Received: from localhost ([127.0.0.1]:47400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHLrq-0002vb-UR for submit@debbugs.gnu.org; Mon, 09 Apr 2012 17:11:19 -0400 Original-Received: from xanadu.aquilenet.fr ([88.191.123.111]:38622) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHLro-0002vS-9W for 11198@debbugs.gnu.org; Mon, 09 Apr 2012 17:11:17 -0400 Original-Received: from localhost (xanadu.aquilenet.fr [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 4AECC6DA9; Mon, 9 Apr 2012 23:10:16 +0200 (CEST) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12YbgbTg4NQ3; Mon, 9 Apr 2012 23:10:16 +0200 (CEST) Original-Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 9F03711F5; Mon, 9 Apr 2012 23:10:15 +0200 (CEST) In-Reply-To: (Klaus Stehle's message of "Sat, 7 Apr 2012 22:16:06 +0200 (CEST)") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6282 Archived-At: Hi Klaus, Klaus Stehle skribis: > (read-hash-extend #\R read-R) Unlike previous versions, Guile 2.0 has distinct compilation and run-time phases. Here you probably want the reader extension to become effective at compile-time (when compiling), and at evaluation-time (when interpreting the code): (eval-when (compile eval) (read-hash-extend #\R read-R)) There=E2=80=99s an example of this in the manual, in the context of =E2=80=98current-reader=E2=80=99 (info "(guile) Loading"). Does it work for you? Thanks, Ludo=E2=80=99.