From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.bugs Subject: [bug #31691] Ellipsis not supported in nested `sxml-match' forms [1.9.13] Date: Fri, 15 Jul 2011 11:36:22 +0000 Message-ID: <20110715-113622.sv78157.99468@savannah.gnu.org> References: <20101118-091036.sv0.12070@savannah.gnu.org> <20101119-162848.sv20118.34131@savannah.gnu.org> <20101119-164144.sv20118.81348@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 1310729606 11785 80.91.229.12 (15 Jul 2011 11:33:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2011 11:33:26 +0000 (UTC) To: Andy Wingo , Stefan Israelsson Tampe , bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Jul 15 13:33:21 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qhge1-0002Aw-FR for guile-bugs@m.gmane.org; Fri, 15 Jul 2011 13:33:21 +0200 Original-Received: from localhost ([::1]:56969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhgdz-0001F6-LZ for guile-bugs@m.gmane.org; Fri, 15 Jul 2011 07:33:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhgd9-00017w-5z for bug-guile@gnu.org; Fri, 15 Jul 2011 07:32:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qhgd7-0008FZ-RC for bug-guile@gnu.org; Fri, 15 Jul 2011 07:32:27 -0400 Original-Received: from colonialone.fsf.org ([140.186.70.51]:33423 helo=frontend.in.savannah.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhgd7-0008FV-Dq for bug-guile@gnu.org; Fri, 15 Jul 2011 07:32:25 -0400 Original-Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.72) (envelope-from ) id 1Qhggw-0005dD-Ms; Fri, 15 Jul 2011 11:36:22 +0000 X-PHP-Originating-Script: 0:sendmail.php 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 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101216 Linux Mint/1 (Debian) Firefox/3.6.13 X-Apparently-From: 82.182.254.46 (Savane authenticated user tampe) In-Reply-To: <20101119-164144.sv20118.81348@savannah.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.51 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.14 Precedence: list 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:5733 Archived-At: Follow-up Comment #3, bug #31691 (project guile): First, upstream doc's for sxml-match indicates that ellipsis in the body is not allowed and then the the Bug would be moot because the spec does not allow the example below. On the other hand allowing the code below is a useful feature and I have a patch that introduce this new feature. On the other hand this means that guile code using sxml-match would not work on other platforms with the upstream version. Best is possible to contact Jim Bender to include this as a feature. The solution is to allow ellipsis in the body in the following way: if we encounter (p ... . l) then p is investigated to see if there are any variables that comes from an ellipsis in the matcher. If we find that there exists such variables the ellipsis will not be used for expansion paths in the macro and it will be untouched. _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/