From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: (sxml match) Date: Wed, 26 May 2010 16:12:36 +0200 Message-ID: <87hblurbu3.fsf@gnu.org> References: <87632br73b.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1274886738 4621 80.91.229.12 (26 May 2010 15:12:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 26 May 2010 15:12:18 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed May 26 17:12:17 2010 connect(): No such file or directory Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OHIHI-0004jf-SE for guile-devel@m.gmane.org; Wed, 26 May 2010 17:12:17 +0200 Original-Received: from localhost ([127.0.0.1]:42123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHIHH-00026l-M2 for guile-devel@m.gmane.org; Wed, 26 May 2010 11:12:15 -0400 Original-Received: from [140.186.70.92] (port=45304 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHHMm-0003KG-0I for guile-devel@gnu.org; Wed, 26 May 2010 10:13:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHHLc-0004et-Fc for guile-devel@gnu.org; Wed, 26 May 2010 10:12:45 -0400 Original-Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:57196) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHHLc-0004eX-94 for guile-devel@gnu.org; Wed, 26 May 2010 10:12:40 -0400 X-IronPort-AV: E=Sophos;i="4.53,304,1272837600"; d="scan'208";a="51868892" Original-Received: from laptop-147-210-128-170.labri.fr (HELO nixey) ([147.210.128.170]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 26 May 2010 16:12:39 +0200 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Prairial an 218 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Andy Wingo's message of "Wed, 26 May 2010 14:39:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10375 Archived-At: Hi Andy! Andy Wingo writes: > On Tue 25 May 2010 23:42, ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> I integrated the doc in the manual. Unfortunately it can=E2=80=99t be m= ade to >> appear close to the automatically generated doc of (sxml simple), so it >> actually appears before. I=E2=80=99m open to suggestions to improve tha= t. > > You could put the documentation in the module commentary of (sxml > match), as texinfo. Or you could extend module-commentary somehow to > look for commentaries in other sources. Probably easiest just to paste > the texinfo you already wrote into the commentary, no? Actually I don=E2=80=99t want that much Texinfo in a Scheme file, and I don= =E2=80=99t want the automatically-generated =E2=80=9CUsage=E2=80=9D subsection. Besides, I initially started by just putting =E2=80=98@include sxml-match.t= exi=E2=80=99 in the module=E2=80=99s commentary but that didn=E2=80=99t work (I forgot t= he details.) >> The test suite reveals an interesting psyntax =E2=80=9Cproblem=E2=80=9D:= renaming the >> =E2=80=98xyzpq=E2=80=99 variable in sxml-match-tests.ss to =E2=80=98x=E2= =80=99 leads to: >> >> ERROR: In procedure macroexpand: >> ERROR: identifier out of context in subform `x' of `(quote (d (a 1 2 3) = (a 4 5) (a 6 7 8) (a 9 10)))' >> >> Ideas? >> >> (Would be good if psyntax error reporting contained source location >> info.) > > It would certainly be possible to maintain a stack of source locations > in the expander, and modify syntax-violation to look in that stack. > > There is also the possibility of simply inspecting the syntax objects > given to syntax-violation for source info, but it might not be there -- > best to have a stack to at least give approximate info. Thanks for the hints, I=E2=80=99ll try to look into it. I note that you subtly omitted to comment on the issue above. :-) Thanks, Ludo=E2=80=99.