From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#6583: 23.2; cl loop macro with `and' clause Date: Thu, 2 Jun 2016 18:06:58 -0400 Message-ID: References: <871vbedfzq.fsf@blah.blah> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1464905305 10995 80.91.229.3 (2 Jun 2016 22:08:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2016 22:08:25 +0000 (UTC) To: 6583@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 03 00:08:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b8amj-0006HM-9C for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jun 2016 00:08:13 +0200 Original-Received: from localhost ([::1]:50645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8ami-0005v5-AN for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jun 2016 18:08:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8amb-0005uB-8E for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 18:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8amX-0007Lf-V7 for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 18:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8amX-0007LZ-Qw for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 18:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b8amX-0002F8-KT for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 18:08:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <871vbedfzq.fsf@blah.blah> Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jun 2016 22:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6583 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6583-submit@debbugs.gnu.org id=B6583.14649052338561 (code B ref 6583); Thu, 02 Jun 2016 22:08:01 +0000 Original-Received: (at 6583) by debbugs.gnu.org; 2 Jun 2016 22:07:13 +0000 Original-Received: from localhost ([127.0.0.1]:52148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8all-0002E1-65 for submit@debbugs.gnu.org; Thu, 02 Jun 2016 18:07:13 -0400 Original-Received: from mail-oi0-f51.google.com ([209.85.218.51]:34274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8alb-0002DB-KJ for 6583@debbugs.gnu.org; Thu, 02 Jun 2016 18:07:12 -0400 Original-Received: by mail-oi0-f51.google.com with SMTP id e72so99742279oib.1 for <6583@debbugs.gnu.org>; Thu, 02 Jun 2016 15:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to :content-transfer-encoding; bh=Ib7L3SLSxIiirDoiS4tz00Xl5NdC9BBjqIxxjh+4xo0=; b=teKLUj3K2fuFCu4TGu+Y2/1620OXJhCWnwHuEpsERRhOSPsW3acgod5lV7lBybV1T1 Ocv50C6a2IaINSMoSimixzm4SlK6O72IZxh4pUVKrlGTHfmXQ3+1+/DtRrbq5Gs0aMpS V+SqG591j0LbGqrhRjMDQ8U6LbwK4dxjv0TXSU5i3qD6KU6w0Y6exDkUZzRw087pnIrm PeuA+QPkx+0NrM8AdnyWYqnf1Uphc5vboLhzrdGS3SUNkqd9Ltfl7rnHITFGRCFxB8PR 5AsDhbsGRzZWg1x1EAUEtVFsYqkkZ9OsXBWBZ92i4fKCP6XG3VZJhRwIhlE/EALgwlwm dpsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:content-transfer-encoding; bh=Ib7L3SLSxIiirDoiS4tz00Xl5NdC9BBjqIxxjh+4xo0=; b=BTxjJtqmf/WqYMx25yEuF9n4Y3ONxbhllO9j27mOqPX1jJDdCIfOt/08F7czR9tcK6 /tk7YXpovfWClOV9Ykw4jNtTTqN0bcxJJTgxcuMGxbk31MJmj8g6BWHzzQD6ranqJZa0 LM8P4zF4aHcPuk6rH2yjPdN2ZVVUlV3xI3SWVfd5HLVPi7oweetRaGYaHVFDn22LtT/C ronmvVkHguJU9nuLMzQqPCUJSdBDf6rrAo7n7qI+PyWoV1IbWwmPyRolAVADhsGqwWSU Yiw5mHwxLUHy1FQniDUaHTM+zhixsRnpLjkGg449IRuDMuhlpP205dz3ozHXlwfFhR4U Wldw== X-Gm-Message-State: ALyK8tLzUyf3PYvdgK5L9Tl7nofGcnvsnNb6AUlwz3c+Y6UnaC9jDB/0HA6Tz+isP9bi8Mo6DZ4aD+dQZHL/wg== X-Received: by 10.157.29.10 with SMTP id m10mr251029otm.196.1464905218111; Thu, 02 Jun 2016 15:06:58 -0700 (PDT) Original-Received: by 10.157.34.169 with HTTP; Thu, 2 Jun 2016 15:06:58 -0700 (PDT) X-Google-Sender-Auth: dP5-2NRsenda8YnNQdcIoIX2iu0 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:118997 Archived-At: tag 6583 + confirmed found 6583 24.5 found 6583 25.0.94 quit Thierry Volpiatto gmail.com> wrote: > IMHO this is not correct, 'and' clauses should be used after conditionals > (e.g if, when etc..) No, it should also work for 'for' clauses, as documented in CL Hyperspec [1= ] for-as-clause::=3D {for | as} for-as-subclause {and for-as-subclause}* and Emacs' CL manual [2] If you include several =E2=80=98for=E2=80=99 clauses in a row, they are= treated sequentially (as if by =E2=80=98let*=E2=80=99 and =E2=80=98setq=E2=80= =99). You can instead use the word =E2=80=98and=E2=80=99 to link the clauses, in which case they are = processed in parallel (as if by =E2=80=98let=E2=80=99 and =E2=80=98cl-psetq=E2=80=99= ). The SBCL example is just missing the 'do', that's why it failed. [1]: http://www.lispworks.com/documentation/lw51/CLHS/Body/m_loop.htm [2]: http://www.gnu.org/software/emacs/manual/html_node/cl/For-Clauses.html