From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6591: 24.0.50; incorrect doc for `catch' Date: Sat, 10 Jul 2010 18:55:18 +0300 Message-ID: <83y6djuyah.fsf@gnu.org> References: <831vbcbl7n.fsf@gnu.org> <5500EFEE9A854408ABF0FE400497FE2D@us.oracle.com> <83tyo7aiay.fsf@gnu.org> <83mxtz9zbn.fsf@gnu.org> <3ACAED77613643B7B2FC0207DDE11F11@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1278777627 3574 80.91.229.12 (10 Jul 2010 16:00:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Jul 2010 16:00:27 +0000 (UTC) Cc: 6591@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 10 18:00:25 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1OXcTW-0007n2-H6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jul 2010 18:00:22 +0200 Original-Received: from localhost ([127.0.0.1]:33961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXcTV-0002xS-Rc for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jul 2010 12:00:21 -0400 Original-Received: from [140.186.70.92] (port=51709 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXcTH-0002w7-7n for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2010 12:00:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXcTE-0002qS-H1 for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2010 12:00:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59863) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXcTE-0002qO-Fb for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2010 12:00:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OXcRG-0007It-Ai; Sat, 10 Jul 2010 11:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Jul 2010 15:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6591 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6591-submit@debbugs.gnu.org id=B6591.127877744728064 (code B ref 6591); Sat, 10 Jul 2010 15:58:02 +0000 Original-Received: (at 6591) by debbugs.gnu.org; 10 Jul 2010 15:57:27 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXcQg-0007Ib-Pn for submit@debbugs.gnu.org; Sat, 10 Jul 2010 11:57:26 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXcQe-0007IW-Fk for 6591@debbugs.gnu.org; Sat, 10 Jul 2010 11:57:25 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L5C00100MVHG900@a-mtaout20.012.net.il> for 6591@debbugs.gnu.org; Sat, 10 Jul 2010 18:57:21 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.120.144]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L5C00JGXMZKAAC0@a-mtaout20.012.net.il>; Sat, 10 Jul 2010 18:57:21 +0300 (IDT) In-reply-to: <3ACAED77613643B7B2FC0207DDE11F11@us.oracle.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 10 Jul 2010 11:58:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38345 Archived-At: > From: "Drew Adams" > Cc: <6591@debbugs.gnu.org> > Date: Sat, 10 Jul 2010 08:44:47 -0700 > > > > Ah! Then the syntax should be (catch TAG . BODY) or similar. > > ^^^ > > Why the period? > > Same reason as your special `BODY...' syntax. It means _splice in_ the list > BODY. Or if you like, it means that BODY is the cdr of the sexp as a list. Or > if you like, it is equivalent to ,@BODY in backquote syntax. > > You cannot write just (catch TAG BODY). There must be some indication (`.', > `...' or other) to distinguish normal substitution for a placeholder from > splicing substitution for a placeholder. Substitution for TAG is treated > differently from substitution for BODY. > > But are you just playing/kidding here? or arguing? What's the point? I'm sure > that you understand the syntax (A . B) in Lisp and in our docs. I assume you > are trying to make some point, but I fail to see it. I was thinking of modifying the docs to say `catch TAG BODY' and explaining in the text that BODY can be one or more forms. The problem with the period is that it could be misunderstood to mean that a period must be present in the catch form at this point, which is false.