From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#31311: 27.0; doc of `pcase' Date: Sun, 29 Apr 2018 16:28:14 -0700 (PDT) Message-ID: <93772a7c-a3e1-4040-a2ce-1ef3d5e66950@default> References: <4875e9e0-0f6b-433d-a50d-9125d8370740@default> <871sexppro.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1525044426 2676 195.159.176.226 (29 Apr 2018 23:27:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2018 23:27:06 +0000 (UTC) Cc: 31311@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 30 01:27:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1fCvif-0000XP-Tf for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Apr 2018 01:27:02 +0200 Original-Received: from localhost ([::1]:57228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCvkl-0004gY-Ba for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Apr 2018 19:29:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCvkf-0004g3-V0 for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2018 19:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCvkc-0002EO-QC for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2018 19:29:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35364) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCvkc-0002EF-Ka for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2018 19:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fCvkb-0004L4-Ul for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2018 19:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Apr 2018 23:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31311-submit@debbugs.gnu.org id=B31311.152504450516632 (code B ref 31311); Sun, 29 Apr 2018 23:29:01 +0000 Original-Received: (at 31311) by debbugs.gnu.org; 29 Apr 2018 23:28:25 +0000 Original-Received: from localhost ([127.0.0.1]:43261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCvk1-0004KC-DE for submit@debbugs.gnu.org; Sun, 29 Apr 2018 19:28:25 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:43090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCvk0-0004K0-64 for 31311@debbugs.gnu.org; Sun, 29 Apr 2018 19:28:24 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3TNPlUf150446; Sun, 29 Apr 2018 23:28:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=HNsD35NiYou21cGaxMX0phRZ0ciOyJPBDvSKj7iIXE8=; b=bU1qthVoz/DEfg/hcogQ7RvjbUzYgZyHl8OKDnrWTSydkrKFMGDU9/CouKqkky4ufrPE lsBFabb4fmYXphJPcsX5WJTwfJAkB+h7X5NhYgYNzFVxP5B5yrmSdQypSvqRK9BX55Rs Dnk/Fkvz9SZFjwlyGio7cn1hhrooItA2xKz0xi8LVEmBGd66J6+ijpQD4DeFHWXDA+wi wbtCwFOdot0ML/kuxojARBohF8Ej0YfdLBDYfeUTShm15+esBJVAXe7/Jm5GWJowWL1d IObU54DcSCr1JgQbYEUkPa7W4RSGKiyOtg+aJfk8NXDFt5YhaElqFAx0rCNIJo+ZXq8b BA== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2hmgxfj6ud-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 29 Apr 2018 23:28:18 +0000 Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3TNSHZY019619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 29 Apr 2018 23:28:17 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3TNSGqA013590; Sun, 29 Apr 2018 23:28:17 GMT In-Reply-To: <871sexppro.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4678.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8878 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=680 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804290236 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-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:145846 Archived-At: > > 2. CODE is undefined (not specified). We say only this: > > > > "The CODE expression corresponding to the matching > > pattern determines the return value." >=20 > I guess you missed the second line of the docstring? > CASES is a list of elements of the form (PATTERN CODE...). No, not at all. That's where CODE is "bound" in the description, but not where it is defined. I'm looking for a description of CODE. The most one can say, apparently, is that CODE is an expression. What purpose the sequence of CODE expressions serves - what is done with them (or with any of them) - isn't clear. It talks about "the CODE expression corresponding to the matching pattern". Which CODE expression of the sequence "CODE..." is "_the_ CODE expression"? What does it mean for "the CODE expression" to _correspond_ to the matching pattern? (That should presumably be "the matching PATTERN, BTW.) Sorry, but it's just not clear.