From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: on using cl-do-symbols Date: Wed, 02 Nov 2016 13:56:12 -0400 Message-ID: <874m3p22bn.fsf@udel.edu> References: <87ins7oya9.fsf@udel.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1478109697 13277 195.159.176.226 (2 Nov 2016 18:01:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2016 18:01:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 02 19:01:32 2016 Return-path: Envelope-to: ged-emacs-devel@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 1c1zqU-0008Sp-SJ for ged-emacs-devel@m.gmane.org; Wed, 02 Nov 2016 19:01:06 +0100 Original-Received: from localhost ([::1]:56765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1zqX-00054m-MO for ged-emacs-devel@m.gmane.org; Wed, 02 Nov 2016 14:01:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1zlr-0001rL-DG for emacs-devel@gnu.org; Wed, 02 Nov 2016 13:56:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1zln-0001Rq-IX for emacs-devel@gnu.org; Wed, 02 Nov 2016 13:56:19 -0400 Original-Received: from mail-qk0-x22d.google.com ([2607:f8b0:400d:c09::22d]:35266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1zln-0001RR-Cv for emacs-devel@gnu.org; Wed, 02 Nov 2016 13:56:15 -0400 Original-Received: by mail-qk0-x22d.google.com with SMTP id n204so17361268qke.2 for ; Wed, 02 Nov 2016 10:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=1gIMnSO3y9NuOz19YNLIVM31O+tRQYu0Sh8sdZ4lFlI=; b=v7+QRwiaWki7iLBn50x16jcyYr6dJJ0h71NBURa5Fs3xumUemadCLacPE0VCUKX4A8 8k9jIS9odv3/2rMmMJUZpsztmXGv0XiTia9xmGeVVW1oM2fd+YD5AEX85rJKCxlaWIRW JbrgRuNGUu/E6f0FTLKCj0XmJewjF2dMviydxwCC4+Z7p1ZwoUDM3hLWqXqqwT+VxYv5 hAoXIlbEqMCo3lsVVSvrjJYoLNL6IDaMN2aWdpZIlAXOFdYAreDKcQed1U49/jdKvsUR A8qHVyljQ7X1+vooMLEz+ahhUBPZNinoYM3/IG4gFkhTIM8weeQCG/NvZnzDJzTJYFFL 57hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=1gIMnSO3y9NuOz19YNLIVM31O+tRQYu0Sh8sdZ4lFlI=; b=hNx5yEMn0vgxc2DwrJnBnHAbdwjDj84nvF9X5LY7RVT7L+J8cY2xUyb3q/w9PIDKlV P67Ow2DZOOPuwRBvlVnn41EqgJKT6AMrUUjHGytTe5BW4/79K0LBaLyjS1xiBJxi+cWi D0TkGXse5ieWi8ekJw0x25GCDNemjmAZMMipXZ+y73UT/gZvaIDeLLS66BLOiEErkc4l Jyo1g2GyBVWtqZugzktTVTUFG5W7ZB6bq/OigzNs4YcIv5UwolxOlwvqCdDlb87cPMzW SpXXSSMoeqZFuS5wAI2xe7i1rL2x4ChHo6lYf5L9mhuPKBwU1wkOQzVa2YXlL9+NLwO3 kPFA== X-Gm-Message-State: ABUngvcRPuDkvJ941KacSvmr7UX7jJx1vsVtLb6n7nFaTIfWQWgB+9LfqM8jkXZjK7Z0UpmG X-Received: by 10.55.167.88 with SMTP id q85mr4150919qke.61.1478109373838; Wed, 02 Nov 2016 10:56:13 -0700 (PDT) Original-Received: from holos.localdomain ([69.250.222.218]) by smtp.gmail.com with ESMTPSA id j39sm1720967qte.34.2016.11.02.10.56.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Nov 2016 10:56:13 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 5A070688B9; Wed, 2 Nov 2016 13:56:12 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Wed, 02 Nov 2016 08:16:25 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209120 Archived-At: Stefan Monnier writes: >> The warning is that there is an unused binding for `sym'. >> cl-do-symbols does create an outer (let (sym) =E2=80=A6) and then inside >> mapatoms, another (lambda (sym) =E2=80=A6). Does the outer let-binding = in >> cl-do-symbols need to be there? > > I guess it is there so as to obey the CL definition which says: > > When result-form is evaluated, var is bound and has the value nil. > > If that's the case, then the let-binding can be moved so it only > covers the `,(nth 2 spec)` part of the code. Personally, I'd be happy > to disobey the CL specification in this regard since I find it > completely silly. I agree--I can't think of a reason why var should be part of result-form. Interestingly, in the dynamic binding part of dolist, var is indeed set to nil.