From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <20101118-091036.sv0.12070@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 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: 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/