From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Morris Newsgroups: gmane.lisp.guile.bugs Subject: bug#33415: Fix argument list in match-lambda docs Date: Sat, 17 Nov 2018 09:01:24 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------EEF6DC2786FED267F932D361" X-Trace: blaine.gmane.org 1542475387 8339 195.159.176.226 (17 Nov 2018 17:23:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Nov 2018 17:23:07 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 To: 33415@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Nov 17 18:23:03 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gO4JB-00020Q-Pk for guile-bugs@m.gmane.org; Sat, 17 Nov 2018 18:23:02 +0100 Original-Received: from localhost ([::1]:49990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gO4LH-00005U-V5 for guile-bugs@m.gmane.org; Sat, 17 Nov 2018 12:25:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gO4LC-00005M-21 for bug-guile@gnu.org; Sat, 17 Nov 2018 12:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gO4L8-0005GZ-UV for bug-guile@gnu.org; Sat, 17 Nov 2018 12:25:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53856) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gO4L8-0005GM-PQ for bug-guile@gnu.org; Sat, 17 Nov 2018 12:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gO4L8-000777-LK for bug-guile@gnu.org; Sat, 17 Nov 2018 12:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 17 Nov 2018 17:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33415 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154247550027332 (code B ref -1); Sat, 17 Nov 2018 17:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Nov 2018 17:25:00 +0000 Original-Received: from localhost ([127.0.0.1]:58114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gO4L6-00076m-3C for submit@debbugs.gnu.org; Sat, 17 Nov 2018 12:25:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gO1Ce-0001uL-Bf for submit@debbugs.gnu.org; Sat, 17 Nov 2018 09:04:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gO1CY-0007AE-9k for submit@debbugs.gnu.org; Sat, 17 Nov 2018 09:03:59 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34184) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gO1CY-0007AA-6g for submit@debbugs.gnu.org; Sat, 17 Nov 2018 09:03:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gO1CX-00044L-7e for bug-guile@gnu.org; Sat, 17 Nov 2018 09:03:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gO1CU-00077d-2Y for bug-guile@gnu.org; Sat, 17 Nov 2018 09:03:57 -0500 Original-Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:48964) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gO1CR-00071Y-Gf for bug-guile@gnu.org; Sat, 17 Nov 2018 09:03:52 -0500 Original-Received: from cmgw10.unifiedlayer.com (unknown [10.9.0.10]) by gproxy4.mail.unifiedlayer.com (Postfix) with ESMTP id 85A841772DC for ; Sat, 17 Nov 2018 07:01:29 -0700 (MST) Original-Received: from just74.justhost.com ([173.254.28.74]) by cmsmtp with ESMTP id O1A9gZFczuj2oO1A9gx0Au; Sat, 17 Nov 2018 07:01:29 -0700 X-Authority-Reason: nr=8 Original-Received: from dyn-160-39-38-251.dyn.columbia.edu ([160.39.38.251]:38608) by just74.justhost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gO1A9-002wDv-1Z for bug-guile@gnu.org; Sat, 17 Nov 2018 07:01:29 -0700 Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - just74.justhost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - paulwmorris.com X-BWhitelist: no X-Source-IP: 160.39.38.251 X-Source-L: No X-Exim-ID: 1gO1A9-002wDv-1Z X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: dyn-160-39-38-251.dyn.columbia.edu [160.39.38.251]:38608 X-Source-Auth: paul@paulwmorris.com X-Email-Count: 1 X-Source-Cap: dHdpbm5vdDE7dHdpbm5vdDE7anVzdDc0Lmp1c3Rob3N0LmNvbQ== X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sat, 17 Nov 2018 12:24:58 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org 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" Xref: news.gmane.org gmane.lisp.guile.bugs:9278 Archived-At: This is a multi-part message in MIME format. --------------EEF6DC2786FED267F932D361 Content-Type: multipart/alternative; boundary="------------DEF8828482243AADFE3CCE49" --------------DEF8828482243AADFE3CCE49 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi, I found a small error in the docs for the pattern matching module: https://www.gnu.org/software/guile/manual/html_node/Pattern-Matching.html There should be no "exp" in these argument lists: Scheme Syntax: match-lambda exp clause1 clause2 =E2=80=A6 Scheme Syntax: match-lambda* exp clause1 clause2 =E2=80=A6 The attached patch fixes this. -Paul --------------DEF8828482243AADFE3CCE49 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi, I found a small error in the docs for=
 the pattern matching module:

https://www.gnu.org/software/guile/manual/h=
tml_node/Pattern-Matching.html

There should be no "exp" in these argument lists:

Scheme Syntax: match-lambda exp clause1 clause2 =E2=80=A6
Scheme Syntax: match-lambda* exp clause1 clause2 =E2=80=A6

The attached patch fixes this.

-Paul


--------------DEF8828482243AADFE3CCE49-- --------------EEF6DC2786FED267F932D361 Content-Type: text/x-patch; name="0001-Fix-argument-list-in-match-lambda-docs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Fix-argument-list-in-match-lambda-docs.patch" >From 502a6022e6e059a96f73a0b907b02b4e797e5a65 Mon Sep 17 00:00:00 2001 From: Paul Morris Date: Sat, 17 Nov 2018 08:54:06 -0500 Subject: [PATCH] Fix argument list in match-lambda docs * doc/ref/match.texi: Fix argument list for match-lambda. --- doc/ref/match.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/ref/match.texi b/doc/ref/match.texi index 0fc5105d1..f5ea43118 100644 --- a/doc/ref/match.texi +++ b/doc/ref/match.texi @@ -216,7 +216,7 @@ one-element list containing a @var{person} whose first slot is The @code{(ice-9 match)} module also provides the following convenient syntactic sugar macros wrapping around @code{match}. -@deffn {Scheme Syntax} match-lambda exp clause1 clause2 @dots{} +@deffn {Scheme Syntax} match-lambda clause1 clause2 @dots{} Create a procedure of one argument that matches its argument against each clause, and returns the result of evaluating the corresponding expressions. @@ -236,7 +236,7 @@ expressions. @result{} world @end example -@deffn {Scheme Syntax} match-lambda* exp clause1 clause2 @dots{} +@deffn {Scheme Syntax} match-lambda* clause1 clause2 @dots{} Create a procedure of any number of arguments that matches its argument list against each clause, and returns the result of evaluating the corresponding expressions. -- 2.17.1 --------------EEF6DC2786FED267F932D361--