From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 24 01:15:08 2018 Received: (at submit) by debbugs.gnu.org; 24 Mar 2018 05:15:08 +0000 Received: from localhost ([127.0.0.1]:50340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ezbWG-00027s-Kd for submit@debbugs.gnu.org; Sat, 24 Mar 2018 01:15:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ezbWE-000275-Hw for submit@debbugs.gnu.org; Sat, 24 Mar 2018 01:15:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezbW8-00064K-Kg for submit@debbugs.gnu.org; Sat, 24 Mar 2018 01:15:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ezbW8-000645-HX for submit@debbugs.gnu.org; Sat, 24 Mar 2018 01:15:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezbW7-0005TV-2a for bug-guile@gnu.org; Sat, 24 Mar 2018 01:15:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezbW3-0005yr-Uu for bug-guile@gnu.org; Sat, 24 Mar 2018 01:14:59 -0400 Received: from vultr.systemreboot.net ([45.77.148.100]:50578) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ezbW3-0005v7-GP for bug-guile@gnu.org; Sat, 24 Mar 2018 01:14:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gt1sE0G5OcxwiLXps3VYPKK/DHxqZUxSGn9+5CLoZLc=; b=WW1OV+4DrXEiEMV9zLYiFi2JYC yzZxhz3LKmSylqEF6uy6SwsrGzsbbDE/qfKSKzx5jb4hSyBSHSsxKjcrM3wEH466g0yLCx2jSUPfg 5hY3a5ur1gi0dOMTIePch922je5e1ik8o+tKuOOdnfIjFrr9ijP9HVjh61A5sfD/6XQk=; Received: from [103.61.73.218] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ezbVu-0004DI-Vi for bug-guile@gnu.org; Sat, 24 Mar 2018 10:44:47 +0530 From: Arun Isaac To: bug-guile@gnu.org Subject: doc: Inconsistent parentheses in "(guile) sxml-match" Date: Sat, 24 Mar 2018 10:44:46 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) All examples in "(guile) sxml-match" use square parentheses around each match clause. However, in the subsection "Guards in Patterns" alone, the example has round parentheses. I think it would be nice to use round parentheses consistently in all examples so that sxml-match and match have the same syntax. But, I have no strong opinions. If you can recommend which way to go, I can provide a patch for the same. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 21 17:34:46 2020 Received: (at 30920) by debbugs.gnu.org; 21 Mar 2020 21:34:46 +0000 Received: from localhost ([127.0.0.1]:48300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFllW-0007Gc-0O for submit@debbugs.gnu.org; Sat, 21 Mar 2020 17:34:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFllT-0007GM-W1 for 30920@debbugs.gnu.org; Sat, 21 Mar 2020 17:34:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jFllO-00081Q-0z; Sat, 21 Mar 2020 17:34:38 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56236 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jFllN-00027g-8e; Sat, 21 Mar 2020 17:34:37 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: bug#30920: doc: Inconsistent parentheses in "(guile) sxml-match" References: Date: Sat, 21 Mar 2020 22:34:35 +0100 In-Reply-To: (Arun Isaac's message of "Sat, 24 Mar 2018 10:44:46 +0530") Message-ID: <87d095xuhg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30920 Cc: 30920@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Arun, Arun Isaac skribis: > All examples in "(guile) sxml-match" use square parentheses around each > match clause. However, in the subsection "Guards in Patterns" alone, the > example has round parentheses. I think it would be nice to use round > parentheses consistently in all examples so that sxml-match and match > have the same syntax. But, I have no strong opinions. If you can > recommend which way to go, I can provide a patch for the same. That documentation comes from Racket-land IIRC, hence the style. I agree with you that consistency would be nice and a patch in that direction would be welcome! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 23 16:30:33 2020 Received: (at 30920) by debbugs.gnu.org; 23 Mar 2020 20:30:33 +0000 Received: from localhost ([127.0.0.1]:53601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGTiS-0006Nc-Tu for submit@debbugs.gnu.org; Mon, 23 Mar 2020 16:30:33 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:51270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGTiO-0006NP-FH for 30920@debbugs.gnu.org; Mon, 23 Mar 2020 16:30:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iGiXLcIv9L60d988l77rmKRBGM85jodrC0IPeuf2ahg=; b=fL+rl3uFQ1ztn5yaJaN/pGjq/ 80RRknhmHPcHKUZqxiWWkJKMX3vpNhU5MRRYp9if5HFAhI2XZsgD6ebuyjXhpAOiN3SdLOB0BEqfU 0K+1dUD3M8giJVCKynf7FOhGJegPWlYpJ2D0mC/U760FXoltk+eZ70CM+1l5L1IrPO2Ws=; Received: from [192.168.2.1] (helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jGTiK-003pcM-RB; Tue, 24 Mar 2020 02:00:24 +0530 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#30920: doc: Inconsistent parentheses in "(guile) sxml-match" In-Reply-To: <87d095xuhg.fsf@gnu.org> References: <87d095xuhg.fsf@gnu.org> Date: Tue, 24 Mar 2020 02:00:05 +0530 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30920 Cc: 30920@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi, > I agree with you that consistency would be nice and a patch in that > direction would be welcome! Please find attached a patch. While working on this patch, I found that two of the code snippets don't work. They work neither with square brackets nor with round brackets. The two snippets are * The first snippet in the "Matching the Unmatched Attributes" subsection @lisp (sxml-match '(a (@@ (z 1) (y 2) (x 3)) 4 5 6) ((a (@@ (y ,www) . ,qqq) ,t ,u ,v) (list www qqq t u v))) @end lisp * The snippet in the "Default Values in Attribute Patterns" subsection @lisp (sxml-match '(e 3 4 5) ((e (@@ (z (,d 1))) ,a ,b ,c) (list d a b c))) @end lisp These snippets fail to evaluate. Could you check? Thanks! --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-doc-Replace-square-brackets-with-round-brackets.patch Content-Transfer-Encoding: quoted-printable From=206e31e3fe1fd2b537d4a02dbcfccbb03e0d20e804 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 24 Mar 2020 01:45:32 +0530 Subject: [PATCH] doc: Replace square brackets with round brackets. * doc/ref/sxml-match.texi: Replace all square brackets with round brackets in order to be consistent with the rest of the documentation. =2D-- doc/ref/sxml-match.texi | 90 ++++++++++++++++++++--------------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/doc/ref/sxml-match.texi b/doc/ref/sxml-match.texi index 3adf34751..9b5f1dbd4 100644 =2D-- a/doc/ref/sxml-match.texi +++ b/doc/ref/sxml-match.texi @@ -30,9 +30,9 @@ illustration, transforming a music album catalog language= into HTML. @lisp (define (album->html x) (sxml-match x =2D [(album (@@ (title ,t)) (catalog (num ,n) (fmt ,f)) ...) + ((album (@@ (title ,t)) (catalog (num ,n) (fmt ,f)) ...) `(ul (li ,t) =2D (li (b ,n) (i ,f)) ...)])) + (li (b ,n) (i ,f)) ...)))) @end lisp =20 Three macros are provided: @code{sxml-match}, @code{sxml-match-let}, and @@ -138,8 +138,8 @@ The example below illustrates the pattern matching of a= n XML element: =20 @lisp (sxml-match '(e (@@ (i 1)) 3 4 5) =2D [(e (@@ (i ,d)) ,a ,b ,c) (list d a b c)] =2D [,otherwise #f]) + ((e (@@ (i ,d)) ,a ,b ,c) (list d a b c)) + (,otherwise #f)) @end lisp =20 Each clause in @code{sxml-match} contains two parts: a pattern and one or = more @@ -165,8 +165,8 @@ where nested ellipses are used to match the children of= repeated instances of an (define x '(d (a 1 2 3) (a 4 5) (a 6 7 8) (a 9 10))) =20 (sxml-match x =2D [(d (a ,b ...) ...) =2D (list (list b ...) ...)]) + ((d (a ,b ...) ...) + (list (list b ...) ...))) @end lisp =20 The above expression returns a value of @code{((1 2 3) (4 5) (6 7 8) (9 10= ))}. @@ -179,8 +179,8 @@ in the example below. =20 @lisp (sxml-match '(e 3 4 5 6 7) =2D [(e ,i ... 6 7) `("start" ,(list 'wrap i) ... "end")] =2D [,otherwise #f]) + ((e ,i ... 6 7) `("start" ,(list 'wrap i) ... "end")) + (,otherwise #f)) @end lisp =20 The general pattern is that @code{`(something ,i ...)} is rewritten as @@ -193,8 +193,8 @@ identifier list. The example below illustrates matchin= g a nodeset. =20 @lisp (sxml-match '("i" "j" "k" "l" "m") =2D [(list ,a ,b ,c ,d ,e) =2D `((p ,a) (p ,b) (p ,c) (p ,d) (p ,e))]) + ((list ,a ,b ,c ,d ,e) + `((p ,a) (p ,b) (p ,c) (p ,d) (p ,e)))) @end lisp =20 This example wraps each nodeset item in an HTML paragraph element. This e= xample @@ -202,8 +202,8 @@ can be rewritten and simplified through using ellipsis: =20 @lisp (sxml-match '("i" "j" "k" "l" "m") =2D [(list ,i ...) =2D `((p ,i) ...)]) + ((list ,i ...) + `((p ,i) ...))) @end lisp =20 This version will match nodesets of any length, and wrap each item in the @@ -218,8 +218,8 @@ This is illustrated in the example below: =20 @lisp (sxml-match '(e 3 (f 4 5 6) 7) =2D [(e ,a (f . ,y) ,d) =2D (list a y d)]) + ((e ,a (f . ,y) ,d) + (list a y d))) @end lisp =20 The above expression returns @code{(3 (4 5 6) 7)}. @@ -233,8 +233,8 @@ illustrated in the example below: =20 @lisp (sxml-match '(a (@@ (z 1) (y 2) (x 3)) 4 5 6) =2D [(a (@@ (y ,www) . ,qqq) ,t ,u ,v) =2D (list www qqq t u v)]) + ((a (@@ (y ,www) . ,qqq) ,t ,u ,v) + (list www qqq t u v))) @end lisp =20 The above expression matches the attribute @code{y} and binds a list of the @@ -245,8 +245,8 @@ This type of pattern also allows the binding of all att= ributes: =20 @lisp (sxml-match '(a (@@ (z 1) (y 2) (x 3))) =2D [(a (@@ . ,qqq)) =2D qqq]) + ((a (@@ . ,qqq)) + qqq)) @end lisp =20 @unnumberedsubsec Default Values in Attribute Patterns @@ -257,7 +257,7 @@ the following example: =20 @lisp (sxml-match '(e 3 4 5) =2D [(e (@@ (z (,d 1))) ,a ,b ,c) (list d a b c)]) + ((e (@@ (z (,d 1))) ,a ,b ,c) (list d a b c))) @end lisp =20 The value @code{1} is used when the attribute @code{z} is absent from the @@ -289,35 +289,35 @@ basic arithmetic operations, which are represented by= the XML elements (define simple-eval (lambda (x) (sxml-match x =2D [,i (guard (integer? i)) i] =2D [(plus ,x ,y) (+ (simple-eval x) (simple-eval y))] =2D [(times ,x ,y) (* (simple-eval x) (simple-eval y))] =2D [(minus ,x ,y) (- (simple-eval x) (simple-eval y))] =2D [(div ,x ,y) (/ (simple-eval x) (simple-eval y))] =2D [,otherwise (error "simple-eval: invalid expression" x)]))) + (,i (guard (integer? i)) i) + ((plus ,x ,y) (+ (simple-eval x) (simple-eval y))) + ((times ,x ,y) (* (simple-eval x) (simple-eval y))) + ((minus ,x ,y) (- (simple-eval x) (simple-eval y))) + ((div ,x ,y) (/ (simple-eval x) (simple-eval y))) + (,otherwise (error "simple-eval: invalid expression" x))))) @end lisp =20 Using the catamorphism feature of @code{sxml-match}, a more concise versio= n of =2D@code{simple-eval} can be written. The pattern @code{,[x]} recursively = invokes +@code{simple-eval} can be written. The pattern @code{,(x)} recursively in= vokes the pattern matcher on the value bound in this position. =20 @lisp (define simple-eval (lambda (x) (sxml-match x =2D [,i (guard (integer? i)) i] =2D [(plus ,[x] ,[y]) (+ x y)] =2D [(times ,[x] ,[y]) (* x y)] =2D [(minus ,[x] ,[y]) (- x y)] =2D [(div ,[x] ,[y]) (/ x y)] =2D [,otherwise (error "simple-eval: invalid expression" x)]))) + (,i (guard (integer? i)) i) + ((plus ,(x) ,(y)) (+ x y)) + ((times ,(x) ,(y)) (* x y)) + ((minus ,(x) ,(y)) (- x y)) + ((div ,(x) ,(y)) (/ x y)) + (,otherwise (error "simple-eval: invalid expression" x))))) @end lisp =20 @unnumberedsubsec Named-Catamorphisms =20 It is also possible to explicitly name the operator in the ``cata'' positi= on. =2DWhere @code{,[id*]} recurs to the top of the current @code{sxml-match}, =2D@code{,[cata -> id*]} recurs to @code{cata}. @code{cata} must evaluate = to a +Where @code{,(id*)} recurs to the top of the current @code{sxml-match}, +@code{,(cata -> id*)} recurs to @code{cata}. @code{cata} must evaluate to= a procedure which takes one argument, and returns as many values as there are identifiers following @code{->}. =20 @@ -329,29 +329,29 @@ transformation that formats a ``TV Guide'' into HTML. (define (tv-guide->html g) (define (cast-list cl) (sxml-match cl =2D [(CastList (CastMember (Character (Name ,ch)) (Actor (Name ,a))) .= ..) =2D `(div (ul (li ,ch ": " ,a) ...))])) + ((CastList (CastMember (Character (Name ,ch)) (Actor (Name ,a))) ...) + `(div (ul (li ,ch ": " ,a) ...))))) (define (prog p) (sxml-match p =2D [(Program (Start ,start-time) (Duration ,dur) (Series ,series-titl= e) + ((Program (Start ,start-time) (Duration ,dur) (Series ,series-title) (Description ,desc ...)) `(div (p ,start-time (br) ,series-title =2D (br) ,desc ...))] =2D [(Program (Start ,start-time) (Duration ,dur) (Series ,series-titl= e) + (br) ,desc ...))) + ((Program (Start ,start-time) (Duration ,dur) (Series ,series-title) (Description ,desc ...) =2D ,[cast-list -> cl]) + ,(cast-list -> cl)) `(div (p ,start-time (br) ,series-title (br) ,desc ...) =2D ,cl)])) + ,cl)))) (sxml-match g =2D [(TVGuide (@@ (start ,start-date) + ((TVGuide (@@ (start ,start-date) (end ,end-date)) =2D (Channel (Name ,nm) ,[prog -> p] ...) ...) + (Channel (Name ,nm) ,(prog -> p) ...) ...) `(html (head (title "TV Guide")) (body (h1 "TV Guide") =2D (div (h2 ,nm) ,p ...) ...))])) + (div (h2 ,nm) ,p ...) ...))))) @end lisp =20 @unnumberedsubsec @code{sxml-match-let} and @code{sxml-match-let*} @@ -365,7 +365,7 @@ an XML pattern in the binding position, rather than a s= imple variable. For example, the expression below: =20 @lisp =2D(sxml-match-let ([(a ,i ,j) '(a 1 2)]) +(sxml-match-let (((a ,i ,j) '(a 1 2))) (+ i j)) @end lisp =20 =2D-=20 2.25.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl55HE0ACgkQLiXui2GA K7Ms2wgAnG6r5RMPW7dO84qDLkpSM+k6jWbOMVabrbnOBTebKz4CrW4DueHSysmH ihHYQDG0LDWlKiyxaa2ijDzLzwO3DM0JNQNzi3jREzSzVeq/B22mzums/crx/vtZ XjB9NnZXq7c8YbGhbk4za0hKFO7ZdVgCBIjgX0No+Yp1w3Yw1lXSjP66DEEAHjGB 6eEN4+acgiO+wK8AFKxtCCf9HEaWrNAKj9StbKwtGKoXomkINaGI47MutmJO7NLl Lu1m2/7w2muC29FE0up0wdq5Ewt7leu7zyAkNgtden4cP/6S65CP+Dg/M/8v0m3G 4GMvxOXp/WJQPDXSRLgsX3b/tcRPfw== =0W0i -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 25 17:54:24 2020 Received: (at 30920-done) by debbugs.gnu.org; 25 Mar 2020 21:54:24 +0000 Received: from localhost ([127.0.0.1]:57914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHDyi-0001GM-Ii for submit@debbugs.gnu.org; Wed, 25 Mar 2020 17:54:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHDyh-0001G8-6L for 30920-done@debbugs.gnu.org; Wed, 25 Mar 2020 17:54:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jHDyb-0003pc-CC; Wed, 25 Mar 2020 17:54:17 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35956 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jHDya-0005Ac-Pw; Wed, 25 Mar 2020 17:54:17 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: bug#30920: doc: Inconsistent parentheses in "(guile) sxml-match" References: <87d095xuhg.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 Germinal an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 25 Mar 2020 22:54:15 +0100 In-Reply-To: (Arun Isaac's message of "Tue, 24 Mar 2020 02:00:05 +0530") Message-ID: <871rpggkxk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30920-done Cc: 30920-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Arun, Arun Isaac skribis: > While working on this patch, I found that two of the code snippets don't > work. They work neither with square brackets nor with round > brackets. The two snippets are > > * The first snippet in the "Matching the Unmatched Attributes" subsection > > @lisp > (sxml-match '(a (@@ (z 1) (y 2) (x 3)) 4 5 6) > ((a (@@ (y ,www) . ,qqq) ,t ,u ,v) > (list www qqq t u v))) > @end lisp > > * The snippet in the "Default Values in Attribute Patterns" subsection > > @lisp > (sxml-match '(e 3 4 5) > ((e (@@ (z (,d 1))) ,a ,b ,c) (list d a b c))) > @end lisp > > These snippets fail to evaluate. Could you check? I can confirm. Would be worth fixing. > From 6e31e3fe1fd2b537d4a02dbcfccbb03e0d20e804 Mon Sep 17 00:00:00 2001 > From: Arun Isaac > Date: Tue, 24 Mar 2020 01:45:32 +0530 > Subject: [PATCH] doc: Replace square brackets with round brackets. > > * doc/ref/sxml-match.texi: Replace all square brackets with round > brackets in order to be consistent with the rest of the documentation. Applied, thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 26 04:21:07 2020 Received: (at 30920) by debbugs.gnu.org; 26 Mar 2020 08:21:07 +0000 Received: from localhost ([127.0.0.1]:58079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHNlD-0001W7-Gb for submit@debbugs.gnu.org; Thu, 26 Mar 2020 04:21:07 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:34566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHNlB-0001Vw-BJ for 30920@debbugs.gnu.org; Thu, 26 Mar 2020 04:21:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jpvL1saSe/0UOFc6v+FilGkNSxRaooZhS4OsQWY+jy8=; b=pbrmtq7d3LRmkmcBq0jOVln4J Qs76ILcZ//CZkCkbl6aDIt1rlvvAD/0J2+JUXx0HII5FME0r+0JclLD6atXEqQj+andR4wt2bc4tD 69gK8xp0FbyBAJm9KVRcEECTseYa1T/EiZYXqmqI0yKHAKXXj8j/JUM68Py90JzQRWrdw=; Received: from [192.168.2.1] (helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jHNl8-003zt9-7N; Thu, 26 Mar 2020 13:51:02 +0530 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#30920: closed (Re: bug#30920: doc: Inconsistent parentheses in "(guile) sxml-match") In-Reply-To: References: <871rpggkxk.fsf@gnu.org> Date: Thu, 26 Mar 2020 13:50:46 +0530 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30920 Cc: 30920@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain >> These snippets fail to evaluate. Could you check? > > I can confirm. Would be worth fixing. I have opened a separate bug report https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40235 for this. > Applied, thanks! Thanks! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl58Zd8ACgkQLiXui2GA K7OOTQf5AYaj3jCYSHvsUO6jqv5mtGcdsy+KBXDHrXCzwwsIYllnEVngfggDVcDA Q9KuJzaGkZJ7x4Ft4oFTiYkqpjP4keNQwGZ2f8Ultysk72JR1H7jRUbaH0wFfK5M nLu4y6pHsWihim63siN/sVpkByHzcT0q8zhZEcHaGrd60mnMMR10vI0wSl3X8FUf vs9RDxG7WocGXMvZ8Ql1er/C6I5w/HUTgGfMtNPI0qa1XpyAWAY4uG/5vJKzUu8q 1yILIW1EUcbk4+4ratX6grPmSxezybDl5CKihej9hfgd7mY79FIYFOuejNz2j71n QkIBlumfGbyvK+U3mc9VduVn0lUCRg== =Pc0P -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 13 11:08:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 23 Apr 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator