GNU bug report logs - #48219
27.1.90; CL-LOOP facility fails with hash tables

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Juan José García Ripoll <juanjose.garcia.ripoll@HIDDEN>; dated Tue, 4 May 2021 08:56:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 48219 <at> debbugs.gnu.org:


Received: (at 48219) by debbugs.gnu.org; 3 Jul 2022 12:18:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 03 08:18:52 2022
Received: from localhost ([127.0.0.1]:43495 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o7yYt-0003X9-TQ
	for submit <at> debbugs.gnu.org; Sun, 03 Jul 2022 08:18:52 -0400
Received: from quimby.gnus.org ([95.216.78.240]:49970)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1o7yYs-0003Wu-Ix
 for 48219 <at> debbugs.gnu.org; Sun, 03 Jul 2022 08:18:51 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=Ko31j4zymJlrcCCcyjAKN3p3e4bKx04xBhh+V+Q+12k=; b=RUxDePUL1V5UMB3EiZodKVKnrr
 Ih+PZVUHL5+F0s35AhjBaq5Hz2iCgCp+z+9nWz2jRUsPIRcP2pE3iZNj1SsDMU6VXexlv2Eh+N+TH
 DMLMDsJomQ7ne2TMcB92Qjvhw+5uoaFZb0eVURP//iirZJkASoU+ofplH+j+a/XBQoyc=;
Received: from [84.212.220.105] (helo=joga)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1o7yYi-0004mh-A7; Sun, 03 Jul 2022 14:18:43 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#48219: 27.1.90; CL-LOOP facility fails with hash tables
In-Reply-To: <jwv8rpbp99t.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Sat, 02 Jul 2022 16:20:00 -0400")
References: <86eeemnawu.fsf@HIDDEN> <87mtdt59bq.fsf@HIDDEN>
 <jwv8rpdsziw.fsf-monnier+emacs@HIDDEN> <87v8sf3ggb.fsf@HIDDEN>
 <jwv8rpbp99t.fsf-monnier+emacs@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXTwan27dV0Y1r/
 ///FTC/9AAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YHAwwFB0ZVuUMAAAFrSURBVCjPTdLPSuRAEAbw
 iqQhehqX1MWTCgvZfooEDOicOqG+g948CPsYw0BgX2DuMwsLs/2UftVRcf6k+aWqm6pKRKbwoCaq
 SWrBJC0gFWCtIMk1hrAT2ZhApLK23oiI8ZsPqGvmGSMX+xP6u70W2FVGPN2iAPmI/Gf8wK/ecj6t
 GH9POOZ/4Ecw+LXDGul9va1LxHcBs9/5RJrWtJJgDf+JtXHRdMnrxjENYa48V+wH8BhmWeHLMDfh
 C5i7wJ2OeETqKgcbj/kwN6WqPuiQtOdQUIkFTQ3i4gF2qhjNYURSHpZ3ysDaT5IzCrxM3vYsQSht
 LWNLzIcSW6xtdrItwJKkO8tLwfXwsOuizD6ktNc2/42S/vOIx3trc86SKuK0Ndw7FiI8c+TnLOZ7
 fj4RjBhHjvCBnlVBX8EWuSd6bW+wclrkA9SwwmJAgn5ig+kLWXTyyX3DVACCzyndOEai5++qRKLw
 7dJ6S7wDi/asv4b+O8cAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDctMDNUMTI6MDU6MDcrMDA6
 MDCf5zE8AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA3LTAzVDEyOjA1OjA3KzAwOjAw7rqJgAAA
 AABJRU5ErkJggg==
X-Now-Playing: Eurythmics's _Savage_: "Shame"
Date: Sun, 03 Jul 2022 14:18:39 +0200
Message-ID: <87bku6bd9c.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Stefan Monnier <monnier@HIDDEN> writes: > I think
 it's not because `database` is both a loop variables (i.e. one > that iterates
 over elements of something else) and one of the something > else over which
 we want to iterate. So the only mea [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48219
Cc: Juan =?utf-8?Q?Jos=C3=A9_Garc=C3=ADa_Ripoll?=
 <juanjose.garcia.ripoll@HIDDEN>, 48219 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Monnier <monnier@HIDDEN> writes:

> I think it's not because `database` is both a loop variables (i.e. one
> that iterates over elements of something else) and one of the something
> else over which we want to iterate.  So the only meaningful
> interpretation I can see would be 2 nested loops, but the `loop` macro
> is designed to make a single loop, not nested loops.

Yes, I think it should be a single loop, and in that case, the
loop is meaningless.

> FWIW, I just tried it with `clisp` and it happpily expands it into
> a single loop which does something weird (it sets up up a hash-table
> iterator to operator over "the hash-table `database`" but at a time
> where the `database` variable has not yet been initialized (i.e. it's
> nil)).

So it signals an error in this case, too?

>> But since it's a meaningless loop, perhaps erroring out in the hash
>> table case is fine, too?
>
> I'm OK with erroring out if we can emit a meaning error message.

I think the current error message is OK, really...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#48219; Package emacs. Full text available.

Message received at 48219 <at> debbugs.gnu.org:


Received: (at 48219) by debbugs.gnu.org; 2 Jul 2022 20:20:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 02 16:20:11 2022
Received: from localhost ([127.0.0.1]:42939 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o7jb8-0003dT-R5
	for submit <at> debbugs.gnu.org; Sat, 02 Jul 2022 16:20:11 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:54455)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1o7jb7-0003dE-3s
 for 48219 <at> debbugs.gnu.org; Sat, 02 Jul 2022 16:20:09 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 43F76100182;
 Sat,  2 Jul 2022 16:20:03 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A2DBA1001D2;
 Sat,  2 Jul 2022 16:20:01 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1656793201;
 bh=An8EIVw6PgxhjxfU39ctTtWoe3EI8esyqsfRajQN3v0=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=ajIrJ1Wwf5mMqah7162B7mKMFOiWEh6xv5KyRqZTZLnmDz+qW1YSmHo2s6AbI72WH
 I+iMHNFGqU8JXa8DlnKMdiPONJs4NatLZ03BddB7rHLnqTP9mtrO3QSvFT8u2nUG/U
 AW/FTbGuNWnI5wSpHrgCBQEF20bDgr7Nx7QRmFHCTWEsR3J862HeioekXUJ3+xrVCE
 M8qHnpHHYwr16Zvx6xbNxE6KHKvvZzWBl6is4EYqHTD5XbrvsNWD0uh8cwhYZn61ab
 3ephiCpfSGEdHS/XFkaPCZLhJBy9Q9Vr27UpHHRZOQu253c9ahsU661ySt8EykfPAk
 zQJXbmHRs8u0A==
Received: from alfajor (unknown [45.72.196.165])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5C6A7120304;
 Sat,  2 Jul 2022 16:20:01 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#48219: 27.1.90; CL-LOOP facility fails with hash tables
Message-ID: <jwv8rpbp99t.fsf-monnier+emacs@HIDDEN>
References: <86eeemnawu.fsf@HIDDEN> <87mtdt59bq.fsf@HIDDEN>
 <jwv8rpdsziw.fsf-monnier+emacs@HIDDEN> <87v8sf3ggb.fsf@HIDDEN>
Date: Sat, 02 Jul 2022 16:20:00 -0400
In-Reply-To: <87v8sf3ggb.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sat,
 02 Jul 2022 13:24:36 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.044 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain T_SCC_BODY_TEXT_LINE    -0.01 -
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48219
Cc: Juan =?windows-1252?Q?Jos=E9_Garc=EDa_Ripoll?=
 <juanjose.garcia.ripoll@HIDDEN>, 48219 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Lars Ingebrigtsen [2022-07-02 13:24:36] wrote:
> Stefan Monnier <monnier@HIDDEN> writes:
>>> Yes, that does seem wrong.
>>
>> Agreed, but I don't know what the code is supposed to do when `database`
>> is not-nil, so I can't even tell if the code is meaningful.
>
> (cl-loop
>  for database in nil
>  for aux = (message "databse: %S" database)
>  for entry being the hash-values of database
>  do (message "FOO %S" database))
>
> Hm...  Oh, yeah -- that's not really a meaningful loop statement, is it?

I think it's not because `database` is both a loop variables (i.e. one
that iterates over elements of something else) and one of the something
else over which we want to iterate.  So the only meaningful
interpretation I can see would be 2 nested loops, but the `loop` macro
is designed to make a single loop, not nested loops.

FWIW, I just tried it with `clisp` and it happpily expands it into
a single loop which does something weird (it sets up up a hash-table
iterator to operator over "the hash-table `database`" but at a time
where the `database` variable has not yet been initialized (i.e. it's
nil)).

> But since it's a meaningless loop, perhaps erroring out in the hash
> table case is fine, too?

I'm OK with erroring out if we can emit a meaning error message.

> Whew!  That was simple!

Occam's razor, man: it's all in the shave!


        Stefan "who doesn't shave"





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#48219; Package emacs. Full text available.

Message received at 48219 <at> debbugs.gnu.org:


Received: (at 48219) by debbugs.gnu.org; 2 Jul 2022 11:24:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 02 07:24:49 2022
Received: from localhost ([127.0.0.1]:39944 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o7bF2-0007Re-Tl
	for submit <at> debbugs.gnu.org; Sat, 02 Jul 2022 07:24:49 -0400
Received: from quimby.gnus.org ([95.216.78.240]:37660)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1o7bF1-0007RN-Hq
 for 48219 <at> debbugs.gnu.org; Sat, 02 Jul 2022 07:24:47 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=UG/Ovn9sI4xoNdliGqK7dJ3mAMZks8vxUuXQW/uboXM=; b=taSNi6zdiZ85otwHNVNiJAT/fQ
 z8vBaVHQSnh5Zxc8D7VWHfa0QFGS2RJkM9zF0ZC+aXCXSk2y5nmwLuaZg48Vbb+qtXUy7m5NuDxkN
 4XRQeWm3HPSraaAR6RWBW5uSNxFPeI7LHBhAGjyIWW3ymmDCnTd1Zy0YvZk9lSniUm3A=;
Received: from [84.212.220.105] (helo=joga)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1o7bEr-0001WV-0a; Sat, 02 Jul 2022 13:24:39 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#48219: 27.1.90; CL-LOOP facility fails with hash tables
In-Reply-To: <jwv8rpdsziw.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Fri, 01 Jul 2022 10:03:17 -0400")
References: <86eeemnawu.fsf@HIDDEN> <87mtdt59bq.fsf@HIDDEN>
 <jwv8rpdsziw.fsf-monnier+emacs@HIDDEN>
X-Now-Playing: Clan of Xymox's _Medusa_: "Agonised By Love"
Date: Sat, 02 Jul 2022 13:24:36 +0200
Message-ID: <87v8sf3ggb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Stefan Monnier <monnier@HIDDEN> writes: >> Yes,
 that does seem wrong. > > Agreed, but I don't know what the code is supposed
 to do when `database` > is not-nil,
 so I can't even tell if the code is meaningful.
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48219
Cc: Juan =?utf-8?Q?Jos=C3=A9_Garc=C3=ADa_Ripoll?=
 <juanjose.garcia.ripoll@HIDDEN>, 48219 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Monnier <monnier@HIDDEN> writes:

>> Yes, that does seem wrong.
>
> Agreed, but I don't know what the code is supposed to do when `database`
> is not-nil, so I can't even tell if the code is meaningful.

(cl-loop
 for database in nil
 for aux =3D (message "databse: %S" database)
 for entry being the hash-values of database
 do (message "FOO %S" database))

Hm...  Oh, yeah -- that's not really a meaningful loop statement, is it?
But by analogue, this equally pointless loop returns nil:

(cl-loop
 for database in '((1) (2))
 for entry in database
 collect entry)

So I guess the original loop should also do that.

But since it's a meaningless loop, perhaps erroring out in the hash
table case is fine, too?

>> I had a brief look at cl--parse-loop-clause, but this is code
>> I haven't looked at before, and I'm not sure I understand the control
>> flow here.  Adding Stefan to the CCs; I'm sure he can tell what should
>> be done immediately.  =F0=9F=98=80
>
> Well, it's fairly obvious: we should just fix the problem.
> Next!

Whew!  That was simple!

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#48219; Package emacs. Full text available.

Message received at 48219 <at> debbugs.gnu.org:


Received: (at 48219) by debbugs.gnu.org; 1 Jul 2022 14:03:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 01 10:03:30 2022
Received: from localhost ([127.0.0.1]:38786 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o7HF4-0001YR-EL
	for submit <at> debbugs.gnu.org; Fri, 01 Jul 2022 10:03:30 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:33082)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1o7HF0-0001Y5-CC
 for 48219 <at> debbugs.gnu.org; Fri, 01 Jul 2022 10:03:29 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 82154100142;
 Fri,  1 Jul 2022 10:03:20 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3C02C10012C;
 Fri,  1 Jul 2022 10:03:19 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1656684199;
 bh=HV08hTPownPqKMeKpYQy0u8tScNcfrfsLOUKitr+A9w=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=ABWtkC9EKG2Z6mwmMmxtiZSpmvhD4KLPWwJNKBAIAOxRJuUCV3b83RQjncFW52RnN
 Ii9YrQKyWL1hKQCJxvK79U9jBCC8ETCgxipxVqVDQoeRbjR6SW42+Dep+0KPs5+xw1
 dKnAlxeJO3SRiG7j62xJmd3HJYBSMnn8t+xscUgMMKea9loqV2B/TYbKDFHTkhcB4o
 VkfPk4UiX6TySkr4oCYoRJj0ZuebsEGQj8/0W3UiYNXQ6PpGrVr5LKPJNsmkvFDg+o
 uDo7iwI5gA6wvpsPhKhI5DoTgGpIrXdZZxls+Guzeh1xZTUNUFKPxcGnvbqEjqkfzD
 mtdWYQ5mZc0pw==
Received: from alfajor (unknown [45.72.196.165])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 02AAD12039E;
 Fri,  1 Jul 2022 10:03:18 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#48219: 27.1.90; CL-LOOP facility fails with hash tables
Message-ID: <jwv8rpdsziw.fsf-monnier+emacs@HIDDEN>
References: <86eeemnawu.fsf@HIDDEN> <87mtdt59bq.fsf@HIDDEN>
Date: Fri, 01 Jul 2022 10:03:17 -0400
In-Reply-To: <87mtdt59bq.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri,
 01 Jul 2022 14:03:21 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.044 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain T_SCC_BODY_TEXT_LINE    -0.01 -
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48219
Cc: Juan =?windows-1252?Q?Jos=E9_Garc=EDa_Ripoll?=
 <juanjose.garcia.ripoll@HIDDEN>, 48219 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Yes, that does seem wrong.

Agreed, but I don't know what the code is supposed to do when `database`
is not-nil, so I can't even tell if the code is meaningful.

> I had a brief look at cl--parse-loop-clause, but this is code
> I haven't looked at before, and I'm not sure I understand the control
> flow here.  Adding Stefan to the CCs; I'm sure he can tell what should
> be done immediately.  =F0=9F=98=80

Well, it's fairly obvious: we should just fix the problem.
Next!


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#48219; Package emacs. Full text available.

Message received at 48219 <at> debbugs.gnu.org:


Received: (at 48219) by debbugs.gnu.org; 1 Jul 2022 12:03:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 01 08:03:39 2022
Received: from localhost ([127.0.0.1]:36504 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o7FN4-0001ge-PX
	for submit <at> debbugs.gnu.org; Fri, 01 Jul 2022 08:03:39 -0400
Received: from quimby.gnus.org ([95.216.78.240]:54246)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1o7FMz-0001gL-FZ
 for 48219 <at> debbugs.gnu.org; Fri, 01 Jul 2022 08:03:37 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=KGSxlspgW0CvGS9nUEV8jxzkfNgeVoQNs6xFiRShjl4=; b=QlhGfFa0Gn1VGfetWrZtYUcBwB
 X2scW3fjt+tB42GupB0feE2Bx2QzDiLknTrLpV01Br5Ahbvfk3+4+iPxEGLPybfA3O/n8ECzhhUhz
 V60iCUwFdZL7zqkavqO2GZnlo9QJjI5AL7DYkUmdOU5DWSwBuYr9HAA/tgRvCfm/Jb0o=;
Received: from [84.212.220.105] (helo=joga)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1o7FMo-0006ni-MA; Fri, 01 Jul 2022 14:03:25 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Juan =?utf-8?Q?Jos=C3=A9_Garc=C3=ADa_Ripoll?=
 <juanjose.garcia.ripoll@HIDDEN>
Subject: Re: bug#48219: 27.1.90; CL-LOOP facility fails with hash tables
In-Reply-To: <86eeemnawu.fsf@HIDDEN> ("Juan =?utf-8?B?Sm9zw6kgR2FyY8Ot?=
 =?utf-8?B?YQ==?= Ripoll"'s message of
 "Tue, 04 May 2021 10:46:57 +0200")
References: <86eeemnawu.fsf@HIDDEN>
X-Now-Playing: Moby's _Reprise: Remixes_: "We Are All Made Of Stars (Moby's
 Ac@N Remix)"
Date: Fri, 01 Jul 2022 14:03:21 +0200
Message-ID: <87mtdt59bq.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Juan José García Ripoll <juanjose.garcia.ripoll@HIDDEN>
    writes: > (cl-loop > for database in nil > for aux = (message "databse: %S"
    database) > for entry being the hash-values of database > do (message "FOO
    %S" database)) > > This code should do nothing, because v [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48219
Cc: Stefan Monnier <monnier@HIDDEN>, 48219 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Juan Jos=C3=A9 Garc=C3=ADa Ripoll <juanjose.garcia.ripoll@HIDDEN> writes:

> (cl-loop
>  for database in nil
>  for aux =3D (message "databse: %S" database)
>  for entry being the hash-values of database
>  do (message "FOO %S" database))
>
> This code should do nothing, because variable DATABASE runs over an empty=
 list. Yet the macroexpansion of the loop produces code that tries to run o=
ver the entries of DATABASE, which is NIL.
>
> (cl--block-wrapper
>  (catch '--cl-block-nil--
>    (let* ((--cl-var-- nil)
> 	  (database nil)
> 	  (aux nil))
>      (cl-block --cl-finish--
>        (maphash (lambda (--cl-var-- entry)
> 		  (or (consp --cl-var--) (cl-return-from --cl-finish-- nil))
> 		  (setq database (car --cl-var--))
> 		  (setq aux (message "databse: %S" database))
> 		  (message "FOO %S" database)
> 		  (setq --cl-var-- (cdr --cl-var--)))
> 		database))
>      nil)))

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Yes, that does seem wrong.  I had a brief look at cl--parse-loop-clause,
but this is code I haven't looked at before, and I'm not sure I
understand the control flow here.  Adding Stefan to the CCs; I'm sure he
can tell what should be done immediately.  =F0=9F=98=80

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#48219; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 May 2021 08:55:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 04 04:55:58 2021
Received: from localhost ([127.0.0.1]:51812 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ldqqT-0004Ym-Rd
	for submit <at> debbugs.gnu.org; Tue, 04 May 2021 04:55:58 -0400
Received: from lists.gnu.org ([209.51.188.17]:35136)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juanjose.garcia.ripoll@HIDDEN>) id 1ldqqS-0004Yg-6D
 for submit <at> debbugs.gnu.org; Tue, 04 May 2021 04:55:56 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:40314)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juanjose.garcia.ripoll@HIDDEN>)
 id 1ldqqR-0002UP-D9
 for bug-gnu-emacs@HIDDEN; Tue, 04 May 2021 04:55:55 -0400
Received: from cel1.sgai.csic.es ([161.111.10.57]:13770)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juanjose.garcia.ripoll@HIDDEN>)
 id 1ldqqP-0006pF-0z
 for bug-gnu-emacs@HIDDEN; Tue, 04 May 2021 04:55:55 -0400
IronPort-SDR: uLlenn1Pyvnmoh0SUg6g+tCdmUZQupi7I06w7Xn30HE0777EAcLYNhdZcl3JnOgXJ1UHYhv7ei
 f/bHco5lX9XWNBYA3WoqFGC36XW0L4muDVOB0gdu9rKHWt27ClRyrxjpoukUbeHoVlcu/MGygs
 x03Dn7t1L7xMW0f8ZnmyiX0/+Mvw3RPUlhhyJdTLdwawyQrSBqRf1HrFwGCEUytiHjFBy8mbcl
 CdzAUrZk3D9276UalbW4innIEEVv+8X+Axw+znTq0ajrxDoB0HyEaDZ4iUWT66QzHG7EQvAFOZ
 s48=
X-IPAS-Result: =?us-ascii?q?A2G3DADsCJFg/wOCZApagQkJg0QGgSaBQYREg0uMO4Fug?=
 =?us-ascii?q?x+JDoMLTox5CwEBAQ8kEAQBAQMBA4ZIJjgTAgQBAQEDAgMBAQEBAQEFAQEBA?=
 =?us-ascii?q?QEBBQMBAQECgQCFFzkNgjgie4EHAQEBAQEBAQEBAQEBAQEBAQEBAQEWAh9SN?=
 =?us-ascii?q?UlGATcNAgUPEgIRATkBRIJLCawwgTIaAmWDEIFRhA+BCIEQKoFli3uBK4Ejg?=
 =?us-ascii?q?RWIAAEBb4JIgmEEgVogIA0ZFyQJHAsQCw8BKgZPBCsCFjFMLwQakFgBDot4n?=
 =?us-ascii?q?kMHgxODBIZ1kDaCfyeDVIFBjzIeAxaQJbQGIIUUgWtqgRMzgQ2CaQlHGY4TI?=
 =?us-ascii?q?wIBARWDTnuJZHE4AgYBCQEBAwmKb4IgAQE?=
IronPort-PHdr: A9a23:UmvTAxDzHJAi0nesM9iIUyQU+EMY04WcBSYlr6E/grcLSJyIuqrYV
 GTh7PlgxGXEQZ/co6odzbaP4ua6AjFLuM/e+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohA
 c5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe7x/I
 AiyoAnLqMUbj4tvJqksxhfUoHZDZvhby35vKV+PhRj3+92+/IRk8yReuvIh89BPXKDndKkmT
 rJWESorPXkt6MLkqRfMQw2P5mABUmoNiRpHHxLF7BDhUZjvtCbxq/dw1zObPc3ySrA0RCii4
 qJ2QxLmlCsLKzg0+3zRh8dtjqxUvQihqgR/zYDKfY+bOvlwcazBct0VXmdBQt9RWjZdDo+gc
 4cCDewMNvtYoYnnoFsOqAOzCw2xBOz1zD9Hnnv43aoh0+M7CQ7I3RYvH8gSv3PKttr6LLscU
 eGtzKnPyTXDa+5d1DD/6IjVaB8hp/OMXbVrccXP00UvGBnKjk+MpozkJTyZzP4Ns2mD7+pnU
 eKvj3UqpB1qojiu2sggkJfGhpkMx13C6C52z5o7K8eiR05nfd6rDoFQtyeCOoV5Rs4vXX1lt
 SI0xLEYupO2fDUHxYg7yxPBd/CKfIaF7BLtWeuQLjl0mHJodr2hixux8kWs1OLyWtWq3VhEr
 ydIlMTHuH4K1xzW8MeHS/1981+91jaU1gDc9vtILl4vlabDK54u2aQ/loAJvUvdBS/6gEr2g
 7WMdko4++in8f7nYrT+pp+bM490jhvyPbgpmsy6B+kzLwsAX3CD9OihyLHv51D1TKlWgvEsj
 6XUvozWKd4Vq6KhHgNY3IIu5wywAjqkytgVn3cKIEhYdB+Jk4TkPUzFLuriAvelmVuslS9mx
 /XBPrL8HJrANmPDkLL9fbZl7E5c1RYzwchf551KDrEBJ+r+WlT0tNzEFh85Mgq0z/z7B9Vm1
 4MRRXiDDbGCMK/KsF+I4PwgI/WUaYMIpDrxMeUp6+LygXMjhFMQc7Wl0YEZZXygG/RpOUSZY
 X7igtcbFmcKuxIzTO73iFKYVz5TZXGyX7ki6T0hB4KpF53DSZysgLObxiu7BJxWZnhBClCIF
 XflbJmLW+wNaC2OOMNujCcEWaC7S4A9zRGuqBP6y71/I+XP5y0Yuovv1Ndz5+3OjB096zl0A
 N6B3GGWVGx0kWUIRyIs0KB4u0x9xQTL7a8tieFXUNNV+rZEVw4xLrbTyfE8DMr9CSzbedLca
 kuvROKEBiqwef042dSLanFHGs2lihSLiyi3CrkXkKeGQpM96Knd1j7rJt56z3Lu37IghB8rW
 Z0cZiWdmqdj+l2LVMbymEKDmvPyHZk=
IronPort-HdrOrdr: A9a23:Yo3Pc6l4eykDW3QsxH+8aaW3kbfpDfKh3DAbvn1ZSRFFG/Gwvc
 aogfgdyFvQgDEeRHkvlbm7Sc69aFnb8oN45pRUAKe6UGDdyQ+VBaxr8IeK+V3dMgLk8Oo178
 hdWoh4TOb9FF1ryfv9iTPIduoI5Pmi3OSWifzFz3FrJDsaCZ1IywtiEA6UHglXaWB9ZKYRL5
 aX6spZqzfIQx1+BfiTPXULU/POoNfGjvvdDCIuPQIt6wWFkFqTgoLSLh7w5Hsjeg9Uzaxn2W
 bIlBGR3NTBj9iLjjDbzHHa9JlblZ/ExsFYDMKBzugZQw+DtjqV
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.82,271,1613430000"; d="scan'208";a="56743508"
Received: from unknown (HELO smtpin.csic.es) ([10.100.130.3])
 by cel1.sgai.csic.es with ESMTP; 04 May 2021 10:47:07 +0200
Received: from DESKTOP-TRKORBR (unknown [139.47.73.130])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested) (Authenticated sender: 08930807E)
 by smtpin.csic.es (Postfix) with ESMTPSA id EE8CD1021D60
 for <bug-gnu-emacs@HIDDEN>; Tue,  4 May 2021 10:47:00 +0200 (CEST)
From: =?utf-8?Q?Juan_Jos=C3=A9_Garc=C3=ADa_Ripoll?=
 <juanjose.garcia.ripoll@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.1.90; CL-LOOP facility fails with hash tables
Date: Tue, 04 May 2021 10:46:57 +0200
Message-ID: <86eeemnawu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=161.111.10.57;
 envelope-from=juanjose.garcia.ripoll@HIDDEN; helo=cel1.sgai.csic.es
X-Spam_score_int: -11
X-Spam_score: -1.2
X-Spam_bar: -
X-Spam_report: (-1.2 / 5.0 requ) AC_FROM_MANY_DOTS=2.999, BAYES_00=-1.9,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


(cl-loop
 for database in nil
 for aux =3D (message "databse: %S" database)
 for entry being the hash-values of database
 do (message "FOO %S" database))

This code should do nothing, because variable DATABASE runs over an empty l=
ist. Yet the macroexpansion of the loop produces code that tries to run ove=
r the entries of DATABASE, which is NIL.

(cl--block-wrapper
 (catch '--cl-block-nil--
   (let* ((--cl-var-- nil)
	  (database nil)
	  (aux nil))
     (cl-block --cl-finish--
       (maphash (lambda (--cl-var-- entry)
		  (or (consp --cl-var--) (cl-return-from --cl-finish-- nil))
		  (setq database (car --cl-var--))
		  (setq aux (message "databse: %S" database))
		  (message "FOO %S" database)
		  (setq --cl-var-- (cdr --cl-var--)))
		database))
     nil)))

Compare this with

(cl-prettyprint
 (macroexpand '(cl-loop
 for database in nil
 for aux =3D (message "databse: %S" database)
 do (message "FOO %S" database))))

(cl--block-wrapper
 (catch '--cl-block-nil--
   (let* ((--cl-var-- nil)
	  (database nil)
	  (aux nil))
     (while (consp --cl-var--)
       (setq database (car --cl-var--))
       (setq aux (message "databse: %S" database))
       (message "FOO %S" database)
       (setq --cl-var-- (cdr --cl-var--)))
     nil)))

Here the resulting code properly checks for the --cl-var-- variabel that ru=
ns the loop


In GNU Emacs 27.1.90 (build 1, x86_64-w64-mingw32)
Repository revision: 37eba74d609c74bcf9ac3c481a29377913783ac4
Repository branch: HEAD
Windowing system distributor 'Microsoft Corp.', version 10.0.19042
System Description: Microsoft Windows 10 Pro (v10.0.2009.19042.928)

Recent messages:
nnimap read 0k from correo.csic.es [2 times]
No more unseen articles
No more unread articles
nnimap read 0k from correo.csic.es
No more unseen articles
No more unread articles
Auto-saving...done
Mark set
Replaced 122 occurrences
Calendar ~/Nextcloud/Documents/Notes/calendar.ics unchanged
Quit
Configured using:
 'configure
 --prefix=3D/c/Users/juanj/src/emacs-build/pkg/emacs-27_1_90-x86_64
 --with-zlib --with-gnutls --with-xml2 --with-lcms2 --with-json
 --with-harfbuzz --with-cairo --with-rsvg --with-png --with-gif
 --with-tiff --with-jpeg --with-xpm --disable-build-details
 --disable-silent-rules --without-dbus'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2
HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: cp1252

Major mode: Summary

Minor modes in effect:
  shell-dirtrack-mode: t
  display-time-mode: t
  which-key-mode: t
  icomplete-mode: t
  save-place-mode: t
  savehist-mode: t
  gcmh-mode: t
  override-global-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/modus-vivendi-theme-0.13.2/mo=
dus-vivendi-theme hides c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/modus=
-themes-1.2.4/modus-vivendi-theme
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/modus-operandi-theme-0.13.2/m=
odus-operandi-theme hides c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/mod=
us-themes-1.2.4/modus-operandi-theme
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-virtual hi=
des c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools=
/pdf-virtual
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-view hides=
 c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/pd=
f-view
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-util hides=
 c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/pd=
f-util
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-tools hide=
s c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/p=
df-tools
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-sync hides=
 c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/pd=
f-sync
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-outline hi=
des c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools=
/pdf-outline
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-occur hide=
s c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/p=
df-occur
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-misc hides=
 c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/pd=
f-misc
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-loader hid=
es c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/=
pdf-loader
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-links hide=
s c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/p=
df-links
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-isearch hi=
des c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools=
/pdf-isearch
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-info hides=
 c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/pd=
f-info
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-history hi=
des c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools=
/pdf-history
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-dev hides =
c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/pdf=
-dev
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-cache hide=
s c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/p=
df-cache
c:/Users/juanj/OneDrive/Library/Emacs/elpa-27/pdf-tools-0.90/pdf-annot hide=
s c:/Users/juanj/scoop/apps/emacs/current/share/emacs/site-lisp/pdf-tools/p=
df-annot

Features:
(shadow warnings emacsbug rng-xsd xsd-regexp rng-cmpct rng-nxml
rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util
rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode nxml-util
nxml-enc xmltok arc-mode archive-mode doc-view image-mode exif nnfolder
jka-compr misearch multi-isearch gnus-icalendar org-capture org-refile
org-tempo tempo org org-macro org-footnote org-pcomplete org-list
org-faces org-entities noutline outline org-version ob-python python
tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x
tramp-compat shell pcomplete ob ob-tangle org-src ob-ref ob-lob ob-table
ob-exp ob-comint comint ring ob-emacs-lisp ob-core ob-eval org-table ol
org-keys org-compat org-macs org-loaddefs icalendar flow-fill smtpmail
flyspell ispell vc-git diff-mode mailalias sendmail bbdb-mua bbdb-com
crm bbdb bbdb-site timezone face-remap nnir mule-util sort smiley
ansi-color gnus-cite mm-archive mail-extr gnus-bcklg gnus-async qp
gnus-ml gnus-topic gnus-demon utf-7 nndraft nnmh nnmaild epa-file gnutls
network-stream nsm nnml nnnil gnus-agent gnus-srvr gnus-score score-mode
nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig
nntp gnus-cache gnus-sum url url-proxy url-privacy url-expand
url-methods url-history shr url-cookie url-domsuf url-util svg xml dom
gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source
utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message
rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived
epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail
rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search
mail-utils mm-util mail-prsvr wid-edit time-date time cal-china lunar
solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt
diary-lib diary-loaddefs cal-menu calendar cal-loaddefs
benchmark-init-modes debug backtrace find-func mailcap which-key
icomplete epg-config modus-operandi-theme modus-themes saveplace
savehist edmacro kmacro benchmark-init advice gcmh diminish cl-extra
help-mode use-package use-package-ensure use-package-delight
use-package-diminish use-package-bind-key bind-key easy-mmode
use-package-core finder-inf tex-site info package easymenu browse-url
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp
disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads w32notify w32
lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 1068058 390211)
 (symbols 48 37670 37)
 (strings 32 286486 56033)
 (string-bytes 1 8189807)
 (vectors 16 85853)
 (vector-slots 8 2485239 445144)
 (floats 8 1011 1568)
 (intervals 56 14806 18837)
 (buffers 1000 184))

--=20
Juan Jos=C3=A9 Garc=C3=ADa Ripoll

Quantum Information and Foundations Group
Institute of Fundamental Physics IFF-CSIC
Calle Serrano 113b, Madrid 28006 Spain
http://quinfog.hbar.es - http://juanjose.garciaripoll.com




Acknowledgement sent to Juan José García Ripoll <juanjose.garcia.ripoll@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#48219; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 3 Jul 2022 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.