From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.bugs Subject: bug#61743: cl-loop's "being the intervals of" does not let-bind var Date: Thu, 23 Feb 2023 17:44:51 -0500 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13792"; mail-complaints-to="usenet@ciao.gmane.io" To: 61743@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 23 23:46:13 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVKLs-0003UA-UJ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Feb 2023 23:46:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVKLk-0006X3-Ad; Thu, 23 Feb 2023 17:46:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVKLi-0006WE-Ml for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 17:46:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVKLi-0006Bo-FA for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 17:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVKLi-00062V-5H for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 17:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: JD Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2023 22:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61743 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167719230323119 (code B ref -1); Thu, 23 Feb 2023 22:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Feb 2023 22:45:03 +0000 Original-Received: from localhost ([127.0.0.1]:35544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVKKk-00060o-MD for submit@debbugs.gnu.org; Thu, 23 Feb 2023 17:45:02 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVKKj-00060H-Hm for submit@debbugs.gnu.org; Thu, 23 Feb 2023 17:45:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVKKj-00066N-0L for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 17:45:01 -0500 Original-Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVKKf-0005ra-LP for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 17:45:00 -0500 Original-Received: by mail-qt1-x831.google.com with SMTP id b6so6609825qtb.1 for ; Thu, 23 Feb 2023 14:44:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=JbRmra3JOUUYQaKByRWG0nJKZknHUrUN21yaPxPPr9k=; b=giTUo1JpBSexHdEeFvv32ccYKvuLdBDtaLbZBUkOQJ7fPIoyqR/AIF06TiykSqlfAM mls8lHPPz5eShklEPqAK7ALmVisbJiC+6rcsrR3RneScIHhBI+fJ32JJ3Z7LgDUODhFu Kau1Sp1f2774BWipr0znHukx8ZTM6PIi1YkJ+4J8BCFBj8zmttF0p05Ff/oi8WjgX2b3 h+81RFaX2VWsJpjpdBzd05ZZLxw3rO3f5p0w772VEk8MAOsdewHz6cplBFDGQM3nGiAk wZmjYLjx84jv7cW9vaGWpFG7hWNvJq+gBLGIfIEtsIOMnawvj88ZqWtFaR5WHt2wEBbH BcSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JbRmra3JOUUYQaKByRWG0nJKZknHUrUN21yaPxPPr9k=; b=Ru/W5mUNUiyKdMr36z39Ci+nrgmzjopmsReQbsf6toT0Hb4VK5OqyE9ANUV3YJfPoo /Mpf5BC+XdNhwlxiu192HtxoyjefO2RokKmJr7xq7L+7RDxp+wVP1T6sCsIArBoBzy1r uwA3wu8Zfed/5661v0MqyVDC+XT2DmDXoxdp720eVpg+bXSc6yt9hOivtYKHGjSSl+Ti 6+07ArsRt753M+xN5Cis4qiSY6nQjvsR+BmSvbUwMISUKj6gbmEWDpt1C6iDtGVhWSVk 8LQsQtebUUL7e43BJJPS88xZ12rOgB4DJqbPeO1fFAJ7tKwh6oiI6jP9IcvC2yNPBd5U gBkw== X-Gm-Message-State: AO0yUKXlU1U5RfZz8aMtqNvT1j04hMRgAYGbekqXI43+WWktyRvrAVai aNsEXSqSqAGUuSmQJYX1qm6teZfTUS6yEQ== X-Google-Smtp-Source: AK7set8SotmErqhz639ndq+LjYwMQWArH4ZEK1QNY6irFTe6kjxTKjd8FiHhl9bzPLXFi7W6qXiYWg== X-Received: by 2002:a05:622a:1e0b:b0:3b8:2ea9:a09c with SMTP id br11-20020a05622a1e0b00b003b82ea9a09cmr7058500qtb.1.1677192294591; Thu, 23 Feb 2023 14:44:54 -0800 (PST) Original-Received: from smtpclient.apple (cm-24-53-184-207.buckeyecom.net. [24.53.184.207]) by smtp.gmail.com with ESMTPSA id 66-20020a370345000000b0073ba92629e1sm4080720qkd.23.2023.02.23.14.44.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Feb 2023 14:44:53 -0800 (PST) X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=jdtsmith@gmail.com; helo=mail-qt1-x831.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256533 Archived-At: Macro-expanding the following reveals that the =E2=80=9Cbeing the = intervals=E2=80=9D cl-loop construct fails to let-bind the loop var (i = here): (cl-loop for i being the intervals of x do (ignore)) expanding to: (cl-block nil (cl-block --cl-finish-- (cl--map-intervals (lambda (--cl-var1-- --cl-var2--) (setq i (cons --cl-var1-- --cl-var2--)) (ignore)) x nil nil nil)) nil) This leads to the loop altering global variables. Emacs v28.2=