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.bugs Subject: [bug #31691] Ellipsis not supported in nested `sxml-match' forms [1.9.13] Date: Fri, 19 Nov 2010 23:56:15 +0100 Message-ID: <8762vsx6r4.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1290207398 5533 80.91.229.12 (19 Nov 2010 22:56:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2010 22:56:38 +0000 (UTC) Cc: bug-guile@gnu.org To: Jim Bender Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Nov 19 23:56:33 2010 Return-path: Envelope-to: guile-bugs@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 1PJZse-0001Of-MU for guile-bugs@m.gmane.org; Fri, 19 Nov 2010 23:56:33 +0100 Original-Received: from localhost ([127.0.0.1]:45073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJZse-0003xQ-BC for guile-bugs@m.gmane.org; Fri, 19 Nov 2010 17:56:32 -0500 Original-Received: from [140.186.70.92] (port=52723 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJZsT-0003vy-9t for bug-guile@gnu.org; Fri, 19 Nov 2010 17:56:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJZsR-0006EF-LE for bug-guile@gnu.org; Fri, 19 Nov 2010 17:56:20 -0500 Original-Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:12167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJZsR-0006E8-9h for bug-guile@gnu.org; Fri, 19 Nov 2010 17:56:19 -0500 X-IronPort-AV: E=Sophos;i="4.59,226,1288566000"; d="scan'208";a="88775151" Original-Received: from reverse-83.fdn.fr (HELO nixey) ([80.67.176.83]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 19 Nov 2010 23:56:17 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 Brumaire an 219 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 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: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4884 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Jim, I stumbled upon the bug below with sxml-match as included in Guile 1.9. Do you have ideas on how to fix it? My guess is that is has to do with =E2=80=98...=E2=80=99 not being specified as a literal in the macros. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline Path: news.gmane.org!not-for-mail From: anonymous Newsgroups: gmane.lisp.guile.bugs Subject: [bug #31691] Ellipsis not supported in nested `sxml-match' forms [1.9.13] Date: Thu, 18 Nov 2010 09:10:37 +0000 Lines: 58 Approved: news@gmane.org Message-ID: <20101118-091036.sv0.12070@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1290071495 15371 80.91.229.12 (18 Nov 2010 09:11:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2010 09:11:35 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Nov 18 10:11:31 2010 Return-path: Envelope-to: guile-bugs@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 1PJ0Wg-0005mj-Ki for guile-bugs@m.gmane.org; Thu, 18 Nov 2010 10:11:30 +0100 Original-Received: from localhost ([127.0.0.1]:35173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJ0Wa-0002hW-N1 for guile-bugs@m.gmane.org; Thu, 18 Nov 2010 04:11:25 -0500 Original-Received: from [140.186.70.92] (port=32840 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJ0Vr-0002h8-12 for bug-guile@gnu.org; Thu, 18 Nov 2010 04:10:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJ0Vq-0007hi-75 for bug-guile@gnu.org; Thu, 18 Nov 2010 04:10:38 -0500 Original-Received: from colonialone.fsf.org ([140.186.70.51]:35972 helo=internal.in.savannah.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJ0Vq-0007hc-3h for bug-guile@gnu.org; Thu, 18 Nov 2010 04:10:38 -0500 Original-Received: from [10.1.0.103] (helo=frontend.in.savannah.gnu.org) by internal.in.savannah.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PJ0Vp-0004iY-Ko for bug-guile@gnu.org; Thu, 18 Nov 2010 09:10:38 +0000 Original-Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1PJ0Vp-00013W-FV for bug-guile@gnu.org; Thu, 18 Nov 2010 09:10:37 +0000 X-Savane-Server: savannah.gnu.org:443 [10.1.0.103] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 31691 User-Agent: Mozilla/5.0 (GNU; rv:1.9.1.7) Gecko/20100107 IceCat/3.6 (like Firefox/3.6) X-Apparently-From: 147.210.128.193 Original-References: In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4863 Archived-At: MIME-Version: 1.0 URL: Summary: Ellipsis not supported in nested `sxml-match' forms [1.9.13] Project: Guile Submitted by: None Submitted on: Thu 18 Nov 2010 09:10:36 AM UTC Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: This fails: #v+ scheme@(guile-user)> (sxml-match '(foo (bar 1 2 3)) ((foo ,x ...) (sxml-match (car x) ((bar ,y ...) y)))) While compiling expression: ERROR: bad pattern syntax (symbol not allowed in this context) Exception during displaying of error: misc-error #v- ... whereas in non-nested position ellipsis obviously works: #v+ scheme@(guile-user)> (define (match-bar x) (sxml-match x ((bar ,y ...) y))) scheme@(guile-user)> (sxml-match '(foo (bar 1 2 3)) ((foo ,x ...) (sxml-match (car x) (,(match-bar -> y) y)))) $1 = (1 2 3) #v- Has to do with `...' not specified as a literal in the `sxml-match' macros... _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ --=-=-=--