From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philippe Schnoebelen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71120: 29.3; buglet in cl-loop Date: Wed, 22 May 2024 10:43:36 +0200 Message-ID: <23fd70f8-6e01-45d7-b9f9-d81d53c95ffd@lmf.cnrs.fr> Reply-To: Philippe Schnoebelen Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32175"; mail-complaints-to="usenet@ciao.gmane.io" To: 71120@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 22 16:49:32 2024 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 1s9nHX-000884-DW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 May 2024 16:49:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9nH3-0002no-S4; Wed, 22 May 2024 10:49:01 -0400 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 1s9nGz-0002mq-FG for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 10:48:58 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9nGz-0006RA-7A for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 10:48:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s9nH4-0003pe-WA for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 10:49:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philippe Schnoebelen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 May 2024 14:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71120 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.171638932014696 (code B ref -1); Wed, 22 May 2024 14:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 May 2024 14:48:40 +0000 Original-Received: from localhost ([127.0.0.1]:56365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9nGi-0003os-0c for submit@debbugs.gnu.org; Wed, 22 May 2024 10:48:40 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9hZe-0008BN-Ed for submit@debbugs.gnu.org; Wed, 22 May 2024 04:43:52 -0400 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 1s9hZY-0008Qu-CV for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 04:43:44 -0400 Original-Received: from mx.lmf.cnrs.fr ([195.220.198.153]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9hZV-00063P-VQ for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 04:43:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lmf.cnrs.fr; s=mail; t=1716367416; bh=Blpta2WMuXzlmDAqqazskBtpwxxYbt5yAXaS3GUuzgA=; h=Date:To:From:Subject:From; b=SIKoEstXapt4naR472j9PN+Srn/9fCpBvlQh8Le8FAUUdg/V7kDjcY8Fq+nAic51x LXT2+YsZPDjyYJes/1vVZw/MUzQXkyzUseJH4xxDU22ukdr5l1AJR1s9GVzmtSJCV4 YiY42cCQ4X9uagXgFSlCUMp1fD7fTOIpnJGtjHQv900zEncHVZ7pyy18XK8k8dRZ7F sRTFkNfM7ncj1dZpp+zcakhwBgsFkQVjvSCkokLYH94Hl5YUQzYquQNuJdLXXLJ4qw z3vNj8Co4gqCb7KRsJlv9ues/ckAJsyAU7BEWMwgcWULOdIR4DpbIz+WwOnXFy3e8r wgBo3Lf+R8FFQ== Original-Received: from authenticated-user (mx.lmf.cnrs.fr [195.220.198.153]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx.lmf.cnrs.fr (Postfix) with ESMTPSA id C83153F66E for ; Wed, 22 May 2024 10:43:36 +0200 (CEST) Content-Language: fr Autocrypt: addr=phs@lmf.cnrs.fr; keydata= xsFNBGUULdoBEACzW6FKHcnl6PzE8zIRx8xxCc/46ux/2C/qT1oLbpLJ9nBgBwrKyxUyma37 b/znzwtTYBzEe7chMp/9bBciPG6fdone/hMkMULLEx+Lq1KwsjtlogZs8nCT0b9GBxlzfB9b tHJL1Sn6AuNdFWFS6PKvAeYK/d+oTaKRfyctXzlkuRZv9L3FM0IoNp0Ihn0++oRgei3WoT7z EavBlvyrcVQOTu6Gj5lM7IYqOrnXbGp77djCS8JpGHZFdhdsQEMTYg+bViaXq9uMyN9MO+8T +IBulqd6VmDzmfsy02XNpZbqZ/GXwzYx40NcHvHvb1etp4XgU3WkSYajGszVI0iVtpruQM0P njPq4JYf506FtmmezPgiA1DPrz/Rqdhp0k3cIKDSk22kHinak8L7vtJ9JfecNq1Yws9xAyJX 4yy2gqP0ow5ZU7muhkGUnXQaUBgT5oi7UBIz3xDCHrzyn8sBVmZtsMUgajz0KE+KW66YeP4K fALQdfIFPjaQ4PWEtmqtm4e6Wt68eVXM3Pbup+1ncxvzZuFmcboNBHExJEtplQCqLbILa4XQ YEW+Z6dFCkk5jzXKUCkSSkIYU9T9n021qG1PKtAdVZAqic/7wSU3rTVb6DgukGaMPZ3tlCpN weBtF91NHRrGGDA5S3zumBmJ6iZupFcNkKEUSNOb2ZIok0/tEQARAQABzSZQaGlsaXBwZSBT Y2hub2ViZWxlbiA8cGhzQGxtZi5jbnJzLmZyPsLBjgQTAQgAOBYhBPNWbzsPpdbApuomRnyz pHZG5tVbBQJlFC3aAhsDBQsJCAcCBhUKCQgLAgQWAgM Received-SPF: pass client-ip=195.220.198.153; envelope-from=phs@lmf.cnrs.fr; helo=mx.lmf.cnrs.fr X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 22 May 2024 10:48:36 -0400 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:285633 Archived-At: When I need a list of 100 random dice throws I write (cl-loop for i from 1 to 100 collect (random 6)) It compiles just fine. If instead I use (cl-loop for _i from 1 to 100 collect (random 6)) then I get a compilation warning: foo.el:1:18: Warning: variable ā€˜_iā€™ not left unused It should be the other way around. The variable 'i' is unused in the first form and that deserves a warning at compile time. Otherwise the compiler will not help me catch the typo in (cl-loop for i from 0 to 10 do (cl-loop for j from 0 to 10 do (foo j j))) ;; <<<=== typo, I meant (foo i j) --ph.schnoebelen, happy and thankful GNU Emacs user since 1983 (Thanks to all involved!!)