From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding. Date: Wed, 29 Apr 2020 00:21:29 -0400 Message-ID: References: <20200419004503.26161.91884@vcs0.savannah.gnu.org> <20200419004504.C65772049B@vcs0.savannah.gnu.org> <026ef78c-3c5e-4fd8-8161-0cc2cf5771c0@default> <87o8rc2w6p.fsf@web.de> <718e93ef-f2a7-4272-9bd9-31b482409bc8@default> <87imhj2faz.fsf@t510.orion.oneofus.la> <878sifndtd.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="96974"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Juanma Barranquero , emacs-devel@gnu.org, Drew Adams , Stefan Kangas To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 29 06:22:14 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jTeEf-000P85-KQ for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 06:22:13 +0200 Original-Received: from localhost ([::1]:41174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTeEe-0007Ek-J7 for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 00:22:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60046) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTeEA-0006pI-Hy for emacs-devel@gnu.org; Wed, 29 Apr 2020 00:21:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTeE9-0004qD-4C for emacs-devel@gnu.org; Wed, 29 Apr 2020 00:21:41 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:46898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTeE8-0004pz-LA for emacs-devel@gnu.org; Wed, 29 Apr 2020 00:21:40 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 56E06450699; Wed, 29 Apr 2020 00:21:39 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D56E245067E; Wed, 29 Apr 2020 00:21:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1588134090; bh=JTc3JLby+aZlwFqy8NjETTCN4ASWf8rnsbXVdend3nk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=CF7RuL+tiA6MuTLGMzi07FmXtQxOfiZQvj5PdIhUGmVn6ml3+rQ8q/ZCmueki0heh iS3FxtG2GBBFGU69cFkZ3aQUgfDowyL8J4BVvc69w6kdBeaN2kB36qT3PxN7hTD28x mKzE7B/whCqLiVMF8zU94bknNTTPukid6agd7lYLyuuKVLhAa5bIPfdxCDz222mkkz YpcT9n4aUfAHuEyLzzqIyBwbmFzMLxkL+ymxUJi3swEsZnAhCWw1HRTYTCuMyrym9v WH8dgk+FCgduvT/9iJU2uN91Ci+v6NKGaQ/8Ve1gRJ4jjsdOWtuC1ijrJEhDU69Hq7 kFWnoG5tDjTJg== Original-Received: from alfajor (69-165-158-35.dsl.teksavvy.com [69.165.158.35]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8CAFD12027A; Wed, 29 Apr 2020 00:21:30 -0400 (EDT) In-Reply-To: <878sifndtd.fsf@web.de> (Michael Heerdegen's message of "Wed, 29 Apr 2020 05:58:06 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/28 23:51:39 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248081 Archived-At: > But AFAIR scheme also has RESULT in its `do', so people coming from > other Lisps might miss it. This one is quite different because it has access to the final value of all the loop variables. So while it is occasionally possible to move the "RESULT" expression to after the `do` loop, it's often not an option because it needs to access some of the loop variables. For `dolist` this can *never* happen because the only loop variable is known to always contain nil at that point. For `dotimes` this can very occasionally happen, tho you can always work around it with a simple rewrite. Stefan