From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 24 09:01:30 2016 Received: (at submit) by debbugs.gnu.org; 24 Nov 2016 14:01:30 +0000 Received: from localhost ([127.0.0.1]:40020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9uag-0001sM-CQ for submit@debbugs.gnu.org; Thu, 24 Nov 2016 09:01:30 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9uae-0001s7-Ud for submit@debbugs.gnu.org; Thu, 24 Nov 2016 09:01:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9uaY-0001VL-Tl for submit@debbugs.gnu.org; Thu, 24 Nov 2016 09:01:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45986) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9uaY-0001V5-R6 for submit@debbugs.gnu.org; Thu, 24 Nov 2016 09:01:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9uaX-00074o-ID for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2016 09:01:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9uaR-0001Q7-Oh for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2016 09:01:21 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:52884) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9uaR-0001Od-DF for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2016 09:01:15 -0500 Received: from [192.168.178.35] ([77.12.123.142]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LrmbG-1csEEQ3TIs-013i4k for ; Thu, 24 Nov 2016 15:01:13 +0100 Subject: Fwd: Re: dotimes var comiler warning References: <878ts957gj.fsf@web.de> To: bug-gnu-emacs@gnu.org From: =?UTF-8?Q?Andreas_R=c3=b6hler?= X-Forwarded-Message-Id: <878ts957gj.fsf@web.de> Message-ID: <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> Date: Thu, 24 Nov 2016 15:10:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <878ts957gj.fsf@web.de> Content-Type: multipart/alternative; boundary="------------92B3F6260E6F8F3EE3B00DA5" X-Provags-ID: V03:K0:LBl352WBRcKKOiiUKA9iB8zovdLo6Tz5bZwtjcMGOrRnpEhfRZ3 GQYOQl5q8ZiFNtBh1cd/ZOQ2D8DiY1jb/e5VT6bPWVIqpKEiW91kjhHbUH7JLRq20sCM19a sACjjGgrfiMpz5UZuGZgX7Hnw6ngmbW5rS70gFS1vpMG0vuy7BRYMWoq6VGE7hd36YLgG9f SuF9AExeifWVvRVjsAOiw== X-UI-Out-Filterresults: notjunk:1;V01:K0:lTD5+aEVWnk=:gX0WoQbrl7TjO90zkqj5Vh VjM30HvOsdJZr8PW2yPwom6GZQwxQ3w061do+iRujcDMnUJrzzMdF4s+Gx2sXJLqFzzwO72CD ZO55San5/9Jxc3pOWeEOlTq6iSknQkj0JNZdrLTUzE7dUGrj8lSI6c+q3V9rhToADjSYoJZIU hFWDBuUy63w6oZWozckckyGSTumJ3ZOa4clmCWFLehJvqSoxdHWAEe62Gfnn8T3iHmqEHHfmL Vgc1c4oL3h3iidRgPm2Dnk+h+/KhsSBf87/KSkga2lEUgI443xKvuq2uEeETsBP9AzJW/pj3e WDIyWa2bnzUQxPP8qb8QNmrLHFdrtk12zJwMYiIXD6bZl9c4rHsqOxyN8Rg+Ah6p5DTHjkokK kX2LbUQ3dBVgn3WhrDFtPhlogOjQEcAQRx1fjODMgcrxaW7reeeAGluHZCxih8NVd65fGlGjt E+28bcP/lqaQ0x8pVJF8iEprwATYzlo0QNdnQFYgffR37S+GITYdOhocjx7xglR5br+R0Ifoa KyRKgkba4KBNg+zXfq0gIvp3bVcUMyDp+kwgrddCzDYj40tesf0aEOwS7STCcrrZIth1gApsu YxKjc9bXr2gpVFYRV05mAUjAjuDDfnXrle8aS4vi8/4knkfDBphA+InKZ0FpBnO5MtGMGlmjI W80cw7+1mbZ/gaWf7Rs7bCbs8pX4NxN8w6aY/8F4nDP+dgPu0HpSuFHuEVRN9zQUSYiJpuKNw 9fXTeZB2/STgTEDh X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is a multi-part message in MIME format. --------------92B3F6260E6F8F3EE3B00DA5 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit See text below, thanks! -------- Forwarded Message -------- Subject: Re: dotimes var comiler warning Date: Thu, 24 Nov 2016 14:32:44 +0100 From: Michael Heerdegen To: Andreas Röhler CC: Help Gnu Emacs mailing list Andreas Röhler writes: > when employing a form > > (dotimes (i erg) > > ...do-something > > > Compiler sends a warning "Unused lexical variable ‘i’ - whilst seems > no way to leave out such a var. > > Worth a bug-report? If none exists yet, I'm for it. FWIW, there is a FIXME comment in the source code already. Yes, you can probably use `_' to suppress the warning, but I always wondered why something called like this requires a variable to be specified (mandatorily) at all. Michael. --------------92B3F6260E6F8F3EE3B00DA5 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

See text below, thanks!


-------- Forwarded Message --------
Subject: Re: dotimes var comiler warning
Date: Thu, 24 Nov 2016 14:32:44 +0100
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Andreas Röhler <andreas.roehler@easy-emacs.de>
CC: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>


Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> when employing a form
>
> (dotimes (i erg)
>
>    ...do-something
>
>
> Compiler sends a warning "Unused lexical variable ‘i’ - whilst seems
> no way to leave out such a var.
>
> Worth a bug-report?

If none exists yet, I'm for it.  FWIW, there is a FIXME comment in the
source code already.

Yes, you can probably use `_' to suppress the warning, but I always
wondered why something called like this requires a variable to be
specified (mandatorily) at all.


Michael.
--------------92B3F6260E6F8F3EE3B00DA5-- From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 24 09:22:42 2016 Received: (at 25017) by debbugs.gnu.org; 24 Nov 2016 14:22:42 +0000 Received: from localhost ([127.0.0.1]:40036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9uvB-0002NV-Q1 for submit@debbugs.gnu.org; Thu, 24 Nov 2016 09:22:42 -0500 Received: from mail-io0-f177.google.com ([209.85.223.177]:36731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9uvA-0002ND-Di; Thu, 24 Nov 2016 09:22:40 -0500 Received: by mail-io0-f177.google.com with SMTP id x94so81579808ioi.3; Thu, 24 Nov 2016 06:22:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=7Fg4/N0Zb1/6waUvqRIuRi9UJ2RuaKQyRxNe50GDThI=; b=P7MHmg7NzjTjOWmhpLkNFekbVKr3ieYPv8/CTmg4QPVMJwQh7561D0K/xAuCH4r+ad dncV2S9WrDHoq+ccOmeE/3Iibs6yWMjUZKKeg6TuSLpFQlnLz2uCTKXci7Yd7gIOCD0c 8fJ/QU3fL/63Wf7TsJtE2+544Z7ZLvF5+w7Utts+2PX0niXpBF/3mD6soeW8yewBum8A YCLYotMi33E/lpMaXNqlLTGNF3B0AD/ZWo1mirzThHTpG2qcOwP7lpNPYNJjscSrG6K+ psc0qxVwl/rpaNlMAIkRZKLjp9Nb6d/cD8zJL1RZjQJruGC1awHOlwZxn03mNDaOEBxx 2R/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=7Fg4/N0Zb1/6waUvqRIuRi9UJ2RuaKQyRxNe50GDThI=; b=Ix84pVt2Kjo5f6+mp0DYx17j+eyJiFLVqucuunoCosdEvvVHBi/0WktXMy29f0eqzB WID3AVEQN17kHT1SgSG8Mj/IqSV43Y6AmlJQ8Hts2nML7mMsS54u2hLVXFuxrlKDTBr8 ByTsMd3R2kYJVTAaMPyO2nByPkb7FVte3g9PiGlnqxZCDE32jlktNCSoZBlOSohQRIqK e8Tbfe68F+1pZkog92lYybTAaEwVkFK94vKKgPmYV1xcwJ3jKIk6qnJIhc5RPUhstARj OA9PMLhNWiLue0Q082gVr5KrhCif+BT0HizRZ0rX7U1A+ie9nT4xVBmgHSwok8hpUVk5 JDAQ== X-Gm-Message-State: AKaTC003tikd+8CdR5xd1xr+ee16PBZof08lnMW+HBMISUZH5e2e+lJW9wu7koIJJDlPNg== X-Received: by 10.36.66.143 with SMTP id i137mr2408161itb.43.1479997354667; Thu, 24 Nov 2016 06:22:34 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id n206sm2553968itg.1.2016.11.24.06.22.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Nov 2016 06:22:34 -0800 (PST) From: npostavs@users.sourceforge.net To: Andreas =?utf-8?Q?R=C3=B6hler?= Subject: Re: bug#25017: Fwd: Re: dotimes var comiler warning References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> Date: Thu, 24 Nov 2016 09:23:27 -0500 In-Reply-To: <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\=22's\?\= message of "Thu, 24 Nov 2016 15:10:02 +0100") Message-ID: <87a8cpj6sg.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25017 Cc: Michael Heerdegen , 25017@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) severity 25017 wishlist quit > > Subject: Re: dotimes var comiler warning=20=20 > Date: Thu, 24 Nov 2016 14:32:44 +0100=20=20 > From: Michael Heerdegen =20=20 > To: Andreas R=C3=B6hler =20=20 > CC: Help Gnu Emacs mailing list =20=20 > > Andreas R=C3=B6hler writes: > >> when employing a form >> >> (dotimes (i erg) >> >> ...do-something >> >> >> Compiler sends a warning "Unused lexical variable =E2=80=98i=E2=80=99 - = whilst seems >> no way to leave out such a var. So you want to do: (dotimes (erg) ...) Or perhaps even (dotimes erg ...) >> >> Worth a bug-report? > > If none exists yet, I'm for it. FWIW, there is a FIXME comment in the > source code already. The FIXME comment is unrelated to this, as far as I can tell (it's talking about binding the variable around the optional RESULT expression). > > Yes, you can probably use `_' to suppress the warning, but I always > wondered why something called like this requires a variable to be > specified (mandatorily) at all. Because it's a bit nonstandard to make the *first* arg &optional? From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 24 09:36:10 2016 Received: (at 25017) by debbugs.gnu.org; 24 Nov 2016 14:36:10 +0000 Received: from localhost ([127.0.0.1]:40044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9v8E-0004ML-1y for submit@debbugs.gnu.org; Thu, 24 Nov 2016 09:36:10 -0500 Received: from mout.web.de ([212.227.15.3]:49879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9v8C-0004M5-DW for 25017@debbugs.gnu.org; Thu, 24 Nov 2016 09:36:08 -0500 Received: from drachen.dragon ([90.186.3.52]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MAvFE-1bzzVY23D2-009x1e; Thu, 24 Nov 2016 15:35:48 +0100 From: Michael Heerdegen To: npostavs@users.sourceforge.net Subject: Re: bug#25017: Fwd: Re: dotimes var comiler warning References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> <87a8cpj6sg.fsf@users.sourceforge.net> Date: Thu, 24 Nov 2016 15:35:43 +0100 In-Reply-To: <87a8cpj6sg.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Thu, 24 Nov 2016 09:23:27 -0500") Message-ID: <874m2x54jk.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:i4xYFeD6Zv/S9+qfyEKSzaaPImaebZ2Vk+qYrdKSGaDVwIMg0+9 db9A4dUUy3HeEB/1oJ7RliSs9AkTPwSUjIlK4s860shtlPIaN5JZtrV99Nip///qQGfMYP/ MYQTR7YMj/uG2ku+LN7lE3LGbninhe2PH/Sc9anwi8dHmXHfSIqG5qbPkcSn50DB/lwZuq9 DgGWYCh5Ryx+9R65yHlBQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:3rEZo/atNj0=:DC5ZHUeX22tj1woSzO8iV3 BvAuLo4heq5vOsiGJZD8f652vgK6s99T7Y9qQGotZQf2sSetfkE2i1vrIxkrFzPiwNh3OuLPt jnfagna/RHpb+080benlMCtf3jPgmoow5kjFbWa9d0iY/U9bVuLO+ZncKpq3bKH6DdF0S26+w QYSmwUEc6LzkSAC0WCrOM8WeLBEH+EN/XljtnGOXPWkwYYshUA3xKxw4qqwhF4WOmgYYAn2ea gL+Kos7PWjX4C+LC08QueVNBH+qt0KHjUMPgSyt1iEV1SkjqHgWKsNBLb3uP58tmFuI1rfVZO sOkFlTD1e01h50IL7/7I3XHAdqnyoJY1eIEkFwnMGLGYTbnNimgEAP3xDefIwfbUJiH1TnIpT mfFTG7GTWSZlI4X+8NQRWTg/uc1UrjIIEMMhqbSY2emJ/HKqA5c8yTdavpmyXZ5bwGgZBXtKp Sa41VAVEi1deJ6KySfPI4rV4l6fS55qg7KoknqyiP7twE5Jo8BHKxCw5tCEleyQyf0VR2XJRf Kf/HFb68cxfwq78EmipmyIa7/aLNz7YIiDsX1oH1qnMUDfQ0hp3hbLhAPXTp+7j2FtDaxk5EB CT7Yj0ImC/ibB5n+5Zh9AffpRA+5qwX0pEa6v9BijZGr5z0l8OUHMbYn6DhEx5PbX9IedHBNQ JsPebhvpPpL6Sac0SbkYkWEOeUnJkV5kAmEUflccK5biChemPBPCWBZY/6aRZc64SkGb4OtAJ P0VpdzjvPFGUnA6Hdf61UaqPg/PR3SY2hQVep2wkh0fUCSpYeB+agqsZ59N1hj15N0WEZhf5C hRU2mxj X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: 25017 Cc: Andreas =?utf-8?Q?R=C3=B6hler?= , 25017@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.7 (---) npostavs@users.sourceforge.net writes: > So you want to do: > > (dotimes (erg) > ...) > > Or perhaps even > > (dotimes erg > ...) > Yes. > The FIXME comment is unrelated to this, as far as I can tell (it's > talking about binding the variable around the optional RESULT > expression). Oh, I think you're right. > Because it's a bit nonstandard to make the *first* arg &optional? It's not really an argument list we are talking about - but if it matters, we could choose the second of the above alternatives. Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 24 09:44:15 2016 Received: (at 25017) by debbugs.gnu.org; 24 Nov 2016 14:44:15 +0000 Received: from localhost ([127.0.0.1]:40052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9vG2-0004Xb-SX for submit@debbugs.gnu.org; Thu, 24 Nov 2016 09:44:15 -0500 Received: from mout.gmx.net ([212.227.15.19]:53384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9vG1-0004XQ-AF for 25017@debbugs.gnu.org; Thu, 24 Nov 2016 09:44:13 -0500 Received: from detlef.gmx.de ([87.146.62.107]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Mfn88-1cLvpC1zE4-00NArw; Thu, 24 Nov 2016 15:44:06 +0100 From: Michael Albinus To: Andreas =?utf-8?Q?R=C3=B6hler?= Subject: Re: bug#25017: Fwd: Re: dotimes var comiler warning References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> Date: Thu, 24 Nov 2016 15:44:04 +0100 In-Reply-To: <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\=22's\?\= message of "Thu, 24 Nov 2016 15:10:02 +0100") Message-ID: <87zikpkkej.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:G4PnVcKh1tNBQbtFoY1HS+ZCCV1VPX3R7wu7zqyEyq9MONBNO6x 2oTEUMi5od4KIQh4S9iRw/0yw7XgZhgkbVIkiOs/CFthfx85Z+AKk2VpIWd8Qznz8rBSYZo V/y/gQ1qWzmogtExCbC12n00+dS+1g/5M+Cr6oDqpWDEgnihlZzKtd53Q91IJwsg7GkN4X+ kR+NLnQ5AuULhVlp776yg== X-UI-Out-Filterresults: notjunk:1;V01:K0:8EWvz/takRo=:Tsmu259S0NVwsg9wJTZsyJ SMmC36vvyrZ4cDtKpTHPYjPGVrBAw/yE+Z3tP4qlX+Qmu80N1Y/D5WakX8QzyZwC8vIupeyrG iMMywtd+gJptI/g4Y7YTwXmPLJHNALmfbOygC1zaeUyZq8Hkboay3nDl2sKJvJ77EIikOmhzZ geQkdzEi7VtsLj0AAlWP7EoD+SVvmz9dIqu1GrxXZ1OYmPLk3x+rDEltkG/VZjsF2nDlCkpgp cvGxnv8RD5w+RHX3nsIM/hjpStvL9d9GnJQdibk4EJ2l+3D3b+xOmwl5qsWLQXSb6Iu3FC8DB g6q0JrPTAN0z+duY7X06QLTpwMLDHPc03lVw5PtBOnky9MeKE951pHYSCrhSqVlZH8QBKz6eF vD9P7GCHNbFKKqvSVXLIYsDElQfdQdwMQ2GMvvtBgyA13XU7GuiUtUUnltEovkRbrbZoH/Rza wLOir3F1XoGHAVFBLrZGHoYk8EAi5UjYEULrmCisWtOUQAaU1xW3ol5UHsMBossM27ybgy8NU 2/tWL6vbKHAQ2o9skFvWYNcQouzYlFSQTcAXx8WNK/eqCR7soaViU+NSn+wKv2VzmFKSH9GXl TqY+a98Qj3C4pxIzYnksiGavuXDVxwut1dabIWqtY2c2GxPCvUKQTj/6EVsUh1bXCl+EKZXjJ tATaRcVaqbY30BfkyoOHq23XUjXh6fPXVyNvBVpW/9QDyfvBBLUtFRRnGs5eQwuSPeKexFH7z Jl0oZzo4dx5aevTZbf+CQ1vcbiNKhXgtQcMISuinwoJfOQKP4eFSoqssXaa2ijiUQm+NLZCxR 3/qr7rU X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25017 Cc: 25017@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Andreas R=C3=B6hler writes: >> (dotimes (i erg) >> >> ...do-something >> >> Compiler sends a warning "Unused lexical variable =E2=80=98i=E2=80=99 - = whilst seems >> no way to leave out such a var. > > Yes, you can probably use `_' to suppress the warning, but I always > wondered why something called like this requires a variable to be > specified (mandatorily) at all. Why is this a problem? We have the same situation with function arguments. If you have an unused argument, you do the same: (defun my-fun (_unused used) ;; code w/o _unused ) > Michael. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 24 11:50:50 2016 Received: (at 25017) by debbugs.gnu.org; 24 Nov 2016 16:50:50 +0000 Received: from localhost ([127.0.0.1]:40627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9xEY-0007cp-FM for submit@debbugs.gnu.org; Thu, 24 Nov 2016 11:50:50 -0500 Received: from mout.web.de ([217.72.192.78]:60499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9xEW-0007cc-QF for 25017@debbugs.gnu.org; Thu, 24 Nov 2016 11:50:49 -0500 Received: from drachen.dragon ([90.186.3.52]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MA5v3-1c36fR3sxV-00BHpi; Thu, 24 Nov 2016 17:50:41 +0100 From: Michael Heerdegen To: Michael Albinus Subject: Re: bug#25017: Fwd: Re: dotimes var comiler warning References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> <87zikpkkej.fsf@gmx.de> Date: Thu, 24 Nov 2016 17:50:37 +0100 In-Reply-To: <87zikpkkej.fsf@gmx.de> (Michael Albinus's message of "Thu, 24 Nov 2016 15:44:04 +0100") Message-ID: <87ziko4yaq.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:ep1M2VIk5ufVIO03YcQUK7Y0uanSeVDX7JYY97AkFGK5rbrkEao Dj88ACXZ7gayM8ZCwie3zzJV6V46OUE7roT1rlE6i3KLzGFhvFUGtmO3mwzRuPfLvCK/8Nt RWGQoWkyQ7RaIbb/5KwrxNJFsk1PxLzQRGHMZPCOy4G+E+9Jmt7HYM9xoSwIodeo2GMMRrH Lmq4j3E2S4bsv31CWTd4Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:wH9fwiSJWCI=:5xcgoQAKCupPwUZD9UR+3K h96tnI+ht3KHT1qhDmSN8EStCxELE4MsNBS1/5vxQ97DhTbQkfVQi8pShPr6JkdZVX21z9L8C qUUcgWEIDHR4lqxk5F47Ta70WlLxBrjp6tGLLf2Jko+NTup911Nlt4Jg1Tk4Dof9LI/5UNFzf E0JBuby8nK8hlvCEl+BBFSUKI1e6L2AyqKq4rxhv1Ls5pHAR6/j2tOUN9jqJxrrQQytHez6bK X1nTPliHauY4KLC8L/8qpnqtqEZllhHm7Jl2edZoRau/HOx1gmGc407EcEu2rx1MJUP0Jvk/y pUBBjvgAqcI3lDurEVrP7nQoFtxTM9s2dDD/EQUn+ECNvC1qMOfGfwFZL6U97eRXRJnxf5F48 VkfAzPDa3xuYUXBjyRKdhU3o75d12nB8avlnvXdMSeEzDWIzXc50UO5GSfLfmghdz0yBO4u0q Uo6MTJSl0aLVzILgveZLHcIhjv3RrwjE6O8Bo7IF7ISKX2ROtU46mVh6i3sT3SZMLFZi0AhTg XLfqwFwqavAft+28ClVV/tRAYbRMa3fBlKEODbjzPDA/jeW3lXw+EOYR10CG2vNrWzZjiLeYd z7pdr++hE1yJpipOKSx6L7OxhtYgkyfOnloVVrflLMKb7kg0pZ14VpaOeGMRzERs7X5eNlvmK xG0FTawmVFw4KsT9xwu4s7M3irCPYfyGcZCFPqxwq8q4nNHsUepZuJpe9dGydpGEqUb85gGUi JTxALsjnevMUeY+lh0ekg4WuuAYSZtkWhofRPjz0/Mi6k3hMgYFlyhPKAgkDkOYR1K8hAvMWx O/44JCP X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: 25017 Cc: Andreas =?utf-8?Q?R=C3=B6hler?= , 25017@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.7 (---) Michael Albinus writes: > > Yes, you can probably use `_' to suppress the warning, but I always > > wondered why something called like this requires a variable to be > > specified (mandatorily) at all. > > Why is this a problem? We have the same situation with function > arguments. If you have an unused argument, you do the same: > > (defun my-fun (_unused used) > ;; code w/o _unused > ) It's not a problem. But it's counter-intuitive for something called "dotimes", and it's inconvenient because not needing to bind the counter to a variable is a very common use case, not an exception. But yes, it's just a detail. If what I suggest is not consent, I would not want endless debates on this topic. Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 24 12:01:32 2016 Received: (at 25017) by debbugs.gnu.org; 24 Nov 2016 17:01:32 +0000 Received: from localhost ([127.0.0.1]:40637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9xOu-0007u3-KS for submit@debbugs.gnu.org; Thu, 24 Nov 2016 12:01:32 -0500 Received: from mout.web.de ([212.227.17.12]:53342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9xOt-0007to-3r for 25017@debbugs.gnu.org; Thu, 24 Nov 2016 12:01:31 -0500 Received: from drachen.dragon ([90.186.3.52]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LlF9O-1chdix28xi-00b1Ii; Thu, 24 Nov 2016 18:01:21 +0100 From: Michael Heerdegen To: Michael Albinus Subject: Re: bug#25017: Fwd: Re: dotimes var comiler warning References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> <87zikpkkej.fsf@gmx.de> <87ziko4yaq.fsf@web.de> Date: Thu, 24 Nov 2016 18:01:18 +0100 In-Reply-To: <87ziko4yaq.fsf@web.de> (Michael Heerdegen's message of "Thu, 24 Nov 2016 17:50:37 +0100") Message-ID: <87vavc4xsx.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:1YYoSm3TOgju3Cnf7YNgnS5yFewmaRmga3eE68BHhXPGfvzRNVA gwXwA6Bl0ii12abYnZxIk8H7SPds+mx61wzjUlRRomvn3h/YGn5fztcxgCxtSTVfp5vgqSF 5CshpXGlhHzwD6X35Qod9/d8Yig5nHMSbmDgbUCmo+4wzXv77KbTZ9g9b8bSoWUmUWx7kEp gPrKT17euCRo0Lt8hWvtA== X-UI-Out-Filterresults: notjunk:1;V01:K0:iGB9U7rpXYc=:axjEmdFWmNA/gsl8wrBWW7 KtSItqOdLNvcTE0ucNHvCqbu1Fhxr9ilDuakNUWp3ORqw22M5M71PGqLQHrqVfX9lopdzMPz/ fU3pOaCyNfCUVelV1LunlCIRJYtnqhxPu37jJKq9xx71zjN2CiXjMzdiOOSnDjQbwpFMEc1mx 8CCLWr7UCy38yBmBSfTHTl/6ktz4dOVfSdPHmGtqZ07tWDDihMxcHps1FCnC6NJsNtSQW+f8G mdXjFnIsgsWnWeYEozraQyBEWqY5FRj1W8sbUlilxvh34rACEeMdgrXu9bFXfdJYm/39RtysH zyT1WiUn0yspYezdAIploI11TjGmPXAnx+nzumpB7l4aT09MVh5OzmJvCq3boPtLs0UFMbp5o 5E8z4BR7M0mBjkEPDBcp0X25tgHZvh4RB0d9AAPS1/bLIyK51/SH4JM+yc5+Yz8WbSeq+hdZP 90vwLbZznKT/L39R0GUgy4nwF9BiHM3+QezLEfI5OeGiCfDS17wQMv4frucjPU3rHwK475TfS 1kmQYNGhP7BA21XEZn/dSdPB2anXn0ZWvn4Cb2pwogbmSOtABcDAtlx6ZHltUxxDHrJhZN177 xC5vmhSXcCl8G0yay7nAQZGNIBT8ualt2h65S6B6BKYI0pzQroP58/t9pkcn366jZjbIg3S6F wX30h9Y/YAyycN3mw10m7tHkn8jFYjAapwD3KWJ9xtpbWtibShsYdPKOJ5VLyXRJqAvEUqX1R 3ulBWX9GHzUC0GfL20B+y7oktWXh1mNEXbbI0rg3deC/kbf+W2joBG00j2aJkT27BO8VYBk5Z 683uQGY X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: 25017 Cc: Andreas =?utf-8?Q?R=C3=B6hler?= , 25017@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.7 (---) Michael Heerdegen writes: > It's not a problem. Though, with dynamical bindings, the expansion actually refers to the specified variable, so if you compile e.g. (defun f (x) (dotimes (_ 10) (cl-incf x))) you get the warning "variable `_' not left unused". Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 25 01:04:08 2016 Received: (at 25017) by debbugs.gnu.org; 25 Nov 2016 06:04:08 +0000 Received: from localhost ([127.0.0.1]:40914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cA9cF-0003Ha-R1 for submit@debbugs.gnu.org; Fri, 25 Nov 2016 01:04:08 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:45410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cA9cD-0003H6-V9 for 25017@debbugs.gnu.org; Fri, 25 Nov 2016 01:04:06 -0500 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uAP63xoY030779 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Nov 2016 06:04:00 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id uAP63x5I008362 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Nov 2016 06:03:59 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id uAP63wod008507; Fri, 25 Nov 2016 06:03:58 GMT MIME-Version: 1.0 Message-ID: <34f65954-78b3-4063-a971-cc020e482677@default> Date: Thu, 24 Nov 2016 22:03:57 -0800 (PST) From: Drew Adams To: Michael Heerdegen , Michael Albinus Subject: RE: bug#25017: Fwd: Re: dotimes var comiler warning References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> <87zikpkkej.fsf@gmx.de> <87ziko4yaq.fsf@web.de> <87vavc4xsx.fsf@web.de> In-Reply-To: <87vavc4xsx.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 25017 Cc: 25017@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) FWIW, I think that if any changes are made to dotimes they should be in the direction of Common Lisp dotimes. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 27 05:20:55 2016 Received: (at 25017) by debbugs.gnu.org; 27 Nov 2016 10:20:55 +0000 Received: from localhost ([127.0.0.1]:42895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAwZr-0006Qm-24 for submit@debbugs.gnu.org; Sun, 27 Nov 2016 05:20:55 -0500 Received: from mout.web.de ([212.227.15.14]:63888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAwZp-0006QZ-Ox for 25017@debbugs.gnu.org; Sun, 27 Nov 2016 05:20:54 -0500 Received: from drachen.dragon ([90.186.3.54]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M73o5-1cydJM3UMX-00wmbS; Sun, 27 Nov 2016 11:20:42 +0100 From: Michael Heerdegen To: Drew Adams Subject: Re: bug#25017: Fwd: Re: dotimes var comiler warning References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> <87zikpkkej.fsf@gmx.de> <87ziko4yaq.fsf@web.de> <87vavc4xsx.fsf@web.de> <34f65954-78b3-4063-a971-cc020e482677@default> Date: Sun, 27 Nov 2016 11:20:38 +0100 In-Reply-To: <34f65954-78b3-4063-a971-cc020e482677@default> (Drew Adams's message of "Thu, 24 Nov 2016 22:03:57 -0800 (PST)") Message-ID: <87mvglusuh.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:sAoWaa7GL05s+Rje78FP6GykK+v1kM0S1qVGckh9Y2HYLzj34pi jk4ZnhFkHkoVstL2ZqeFJrWHV9H7Rrt7hqAiuDyHI8nLgAAsnTSsf9CsAwNY8mY+MVk/OAk JsmxqJEYgwPqoj4Itr0noHbfjSJqFAwQ4oBMFRoh+Z2GvspA20HAl7hYfsCcsZZuzbAgwTw SIceO71lm1tutEhmw5PdQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:vMTISYHKZEQ=:WmPV+uD3AJyfyMCLCbHJoW 6j9M+0YPmwUr3MMGUBflEu5eBA2MQcH2Qm05hhrkDFJdlARbg0X1kW9lvyeVJLhRucXDgNPbk Wt8I0LVZPpVQ7HdMvnwof5am6RXELC9nMhDExJsx6DKCk7GO8WtHlyNhaxKeU1Q/zWkuydNd+ SqxY5FpnfOiD0gOilLG8RGXhTQKQApzAe0vejJ91yoHoQyE83NT/K2a3BiaTREzFp2ncdggEq YYpacW8D7mXmE3a+WaHTGiYZxJwj1FfLnzrNkn+L0lX1TOIJ2ErMCaSLlttdR37HvLXlcUhhb Ur420oaoHOxvfz24Y3IMJjZRp0mFEoTKS6XcnI71jdI7zvQ7QUeqBXt1rQh520UQTCqI7HoTO eBnNB61HjnO7JSNF/oeYieTnmguC2fqBsqyz0AqApObZTQdCh5EWYtt8Ctmk1t8X2Ny0oi8Pt 8lCB3HjmU4MWHODYz4YYpVp3tPiOR3mbLs+ZZD7kPlRxMv50p8zc9XmSpkBF0K3ebCoRqPmNP l/jD72SMXXB/q1MPnXxgwB1SLFxRK4b0qQdSk4kdhmFmpxwSwR6RMbblZLuYfG3P5Tt3WAC0a 7+Rn/epzKK+Jk/yHj8FCIGOkuLbIltZDQ9f6MzVlW0R8+UOBcfVvrMHpLcFidFRRqHqyCDceh ZH1nZEJM5jGvqepF3c25tFGivGdPBhlCtINH4xtwLk4PEJCIwJ5y/2ZUrpNGxTfjAmsE6x5Jt mtRHlBlEHDKU+dATnH7/aRm8dlmwaub02zOJWN6DfOyRC0w1zNCjQUww9ZZvggze+qaC7rhEL mVxjJDw X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: 25017 Cc: 25017@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.7 (---) Drew Adams writes: > FWIW, I think that if any changes are made to dotimes they should be > in the direction of Common Lisp dotimes. How do Elisp's dotimes and Common Lisp's dotimes differ? Thanks, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 27 13:24:02 2016 Received: (at 25017) by debbugs.gnu.org; 27 Nov 2016 18:24:03 +0000 Received: from localhost ([127.0.0.1]:43812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB47O-0006ap-NF for submit@debbugs.gnu.org; Sun, 27 Nov 2016 13:24:02 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:50998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB47L-0006aH-QV for 25017@debbugs.gnu.org; Sun, 27 Nov 2016 13:24:01 -0500 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uARINr43009587 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 27 Nov 2016 18:23:53 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id uARINqji019231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 27 Nov 2016 18:23:52 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id uARINo3u024928; Sun, 27 Nov 2016 18:23:51 GMT MIME-Version: 1.0 Message-ID: <555aa16a-98d0-4427-9db1-ca4f857a6ddd@default> Date: Sun, 27 Nov 2016 10:23:49 -0800 (PST) From: Drew Adams To: Michael Heerdegen Subject: RE: bug#25017: Fwd: Re: dotimes var comiler warning References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> <87zikpkkej.fsf@gmx.de> <87ziko4yaq.fsf@web.de> <87vavc4xsx.fsf@web.de> <34f65954-78b3-4063-a971-cc020e482677@default> <87mvglusuh.fsf@web.de> In-Reply-To: <87mvglusuh.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: 25017 Cc: 25017@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) > > FWIW, I think that if any changes are made to dotimes they > > should be in the direction of Common Lisp dotimes. >=20 > How do Elisp's dotimes and Common Lisp's dotimes differ? http://clhs.lisp.se/Body/m_dotime.htm It respects `return' and `return-from'. It allows tags (for `go'). For purposes of this thread: As in Emacs Lisp, both VAR and COUNT are required arguments. In general, I'd prefer that Emacs Lisp not diverge from but converge toward Common Lisp. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 27 15:12:03 2016 Received: (at 25017) by debbugs.gnu.org; 27 Nov 2016 20:12:03 +0000 Received: from localhost ([127.0.0.1]:43867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB5nv-0000f2-2z for submit@debbugs.gnu.org; Sun, 27 Nov 2016 15:12:03 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:36710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB5nt-0000eV-2z for 25017@debbugs.gnu.org; Sun, 27 Nov 2016 15:12:01 -0500 Received: by mail-wm0-f50.google.com with SMTP id g23so187848512wme.1 for <25017@debbugs.gnu.org>; Sun, 27 Nov 2016 12:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BC3i53Btl7dHRuYKqlmR2IKdqC7vM2b2gbDNr2nIYzQ=; b=Mk5yVBz8FYbe8Fba+qnPs+uuSzpdrAHbQFSOfEPWqh9IEz6nJxtE6rZfBDU0g76Ci1 rd/epG6+bMkzE8UqnG1kwnKp1I4SjHat0LoYtS+I0MBYCDZqCDbaZ9cmt+K234KeK2BD 1Wmzjf0Giz0dvl4UfCT/50epE60/MmG4xTJgYv9MDw3++ki/fdxb0zmf/pcD3BuYhJQT I/x+7r1yjCCqHbXmR1JpeLDt1UbjAqprJKdyiNRoXfnNuvZWXbZ6L0KccJ5xwflyyXlw wihql4j/6gC/S2MMQqsxSsi+C2FmCm1e0HqVv6eEoVT+KcnY3Q9UUEPEjXN3Fm8Vj4Fl 4U/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BC3i53Btl7dHRuYKqlmR2IKdqC7vM2b2gbDNr2nIYzQ=; b=MPVo7KBZVKDu3SBPKmdBQ6a80GxJMxchSYJNBlq5GnJB+VCJ7hr27W/vML2oBG727X GgugikmShGYr+P91j2eIsng4acJuytHtM/O2neOaP7S8hzsqfH++Ti8D59McZ66Ux3E3 3BYIxm5XplW76vsqB1Vld6cxdOA442fCP8xZjKLbOUfItN2RICZ85TsChRuuQCYvzHTq fh2RDTFz32agAijTIKvSzVRatp1mGuLbUeitv5M4tfV/UjKxuFucjJ67pGucNiv08r3p xd5lSFqUspucW9LW8JIviezVgV+NNDn3Gs8c7NEcif0vu1TuT04Uv7xv5OfNdyxR+7Ri k4jA== X-Gm-Message-State: AKaTC00QFH3dtK32fkNPNBWPCtTrv692FRGr/kLZl8t7jVPMKpyCiwbLUuKmRtWqAnqoPZD3WmhVuv3lPEIJIg== X-Received: by 10.28.195.9 with SMTP id t9mr15165296wmf.92.1480277515490; Sun, 27 Nov 2016 12:11:55 -0800 (PST) MIME-Version: 1.0 References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> <87zikpkkej.fsf@gmx.de> <87ziko4yaq.fsf@web.de> <87vavc4xsx.fsf@web.de> <34f65954-78b3-4063-a971-cc020e482677@default> <87mvglusuh.fsf@web.de> <555aa16a-98d0-4427-9db1-ca4f857a6ddd@default> In-Reply-To: <555aa16a-98d0-4427-9db1-ca4f857a6ddd@default> From: Philipp Stephani Date: Sun, 27 Nov 2016 20:11:44 +0000 Message-ID: Subject: Re: bug#25017: Fwd: Re: dotimes var comiler warning To: Drew Adams , Michael Heerdegen Content-Type: multipart/alternative; boundary=001a1148d9fe7adcac05424df7b5 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 25017 Cc: 25017@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) --001a1148d9fe7adcac05424df7b5 Content-Type: text/plain; charset=UTF-8 Drew Adams schrieb am So., 27. Nov. 2016 um 19:25 Uhr: > > > FWIW, I think that if any changes are made to dotimes they > > > should be in the direction of Common Lisp dotimes. > > > > How do Elisp's dotimes and Common Lisp's dotimes differ? > > http://clhs.lisp.se/Body/m_dotime.htm > > It respects `return' and `return-from'. It allows tags > (for `go'). > A variant of `dotimes' that supports such constructs (only the "return" ones though) is available in cl-lib.el: `cl-dotimes'. > > For purposes of this thread: As in Emacs Lisp, both VAR > and COUNT are required arguments. In general, I'd prefer > that Emacs Lisp not diverge from but converge toward > Common Lisp. > > > The (implicit) decision to diverge further from Common Lisp has been made a while ago, by prefixing the CL functions with `cl' and importing the `seq' and `map' libraries, which provide similar functionality, but with a different interface. Regarding third-party package, the hugely popular `dash' library advertises itself with "No CL required." Given these indicators, I'd expect the divergence to increase further instead of decrease. --001a1148d9fe7adcac05424df7b5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Drew A= dams <drew.adams@oracle.com= > schrieb am So., 27. Nov. 2016 um 19:25=C2=A0Uhr:
> > FWIW, I think that if any changes are made to = dotimes they
> > should be in the direction of Common Lisp dotimes.
>
> How do Elisp's dotimes and Common Lisp's dotimes differ?

http://clhs.lisp.se/Body/m_dotime.htm<= br class=3D"gmail_msg">
It respects `return' and `return-from'.=C2=A0 It allows tags
(for `go').

A v= ariant of `dotimes' that supports such constructs (only the "retur= n" ones though) is available in cl-lib.el: `cl-dotimes'.
=C2=A0

For purposes of this thread: As in Emacs Lisp, both VAR
and COUNT are required arguments.=C2=A0 In general, I'd prefer
that Emacs Lisp not diverge from but converge toward
Common Lisp.



The (implicit) dec= ision to diverge further from Common Lisp has been made a while ago, by pre= fixing the CL functions with `cl' and importing the `seq' and `map&= #39; libraries, which provide similar functionality, but with a different i= nterface. Regarding third-party package, the hugely popular `dash' libr= ary advertises itself with "No CL required." Given these indicato= rs, I'd expect the divergence to increase further instead of decrease.<= /div>
--001a1148d9fe7adcac05424df7b5-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 28 11:32:07 2016 Received: (at 25017-done) by debbugs.gnu.org; 28 Nov 2016 16:32:07 +0000 Received: from localhost ([127.0.0.1]:45121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBOqc-0005AW-UE for submit@debbugs.gnu.org; Mon, 28 Nov 2016 11:32:07 -0500 Received: from mout.web.de ([212.227.17.11]:52932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBOqb-00059p-6z for 25017-done@debbugs.gnu.org; Mon, 28 Nov 2016 11:32:05 -0500 Received: from drachen.dragon ([90.186.3.55]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MCIe5-1c2uNt1Jab-00981A; Mon, 28 Nov 2016 17:31:52 +0100 From: Michael Heerdegen To: Philipp Stephani Subject: Re: bug#25017: Fwd: Re: dotimes var comiler warning References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> <87zikpkkej.fsf@gmx.de> <87ziko4yaq.fsf@web.de> <87vavc4xsx.fsf@web.de> <34f65954-78b3-4063-a971-cc020e482677@default> <87mvglusuh.fsf@web.de> <555aa16a-98d0-4427-9db1-ca4f857a6ddd@default> Date: Mon, 28 Nov 2016 17:31:49 +0100 In-Reply-To: (Philipp Stephani's message of "Sun, 27 Nov 2016 20:11:44 +0000") Message-ID: <87k2bn1s7e.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:kkAWzJbZGXkoY1s2ZxNaZTPjAUbDvWvhZ2spnvWnwxHClsxVpVW oQl/jCJHFxCSNBy5ffLw7gGRyRwdkZz3Q/tfuIbqb5rmiEaJHEQq849fyv4JQvJYomFWC3C ZH+TFNJ1N8q4aHH5q35kTfapc5IbklQLvIZeJ+GcycSV4F42A2bBT6NS4CZlsSKRVvk1LY5 SgnLXQ6cEN30/QORHiLnA== X-UI-Out-Filterresults: notjunk:1;V01:K0:XdNBaOsUNDQ=:8AAXsMuj4/IE4hsYuLPnvI 8XTNKnwVdHb5TAPkEjqqtnJYAkezNzIj7HK+oT8Liih4n0aFZjZ8aofzXXJsiYTBNN0QnyToR JKkNQQeAr1RlzkexsMNqbmg31kr/6C9zkhBwpW1RJh8tMmzbVVa/pMyB1q+Cok8Q1PhQmUaGS Je4DndRM+9p/tL8XFs1wGr+7GJNP0PYMAxbkRp6CmNsNLj8CgfLeg5wKodnnNYbeeEik8TDnK 3LKkcxaC2PnUqvcqw/5RdIUgADGAQaezcLStI/cKmcuce82oOPbwfmrjEFaT/SabTcvdIHdME evhCl40aNc6bEN4da29UkAvKNcIVCvtEgsANhPwWJhfSQoFxSVIA0lBr8t/0tGMec+NqLOOPB IKctsTpRnFb1RG80LwpcwZs6wjbZ3y7YbVq8GiqoqTBIsOtO2yAMwdvbty/DCKgI8VWdnmLw9 XwkigYgxhqV11dUUFLA1nK30AEPtN4KVc+/kRgSF3l1p9Tq22lmc1dnTvPWwXdPCSRJnDCmSy lEFtMtb1CmWUXtiatJ8kELKgBJKGY0Mqm/BkxG+4udz67sKuY90azvU5jzg1U5K5QkRKp22/P DD0m16ERv/Z2K7qt2SG22U3utNVrN73QwCq0i1woecOehiwCZMQBfQd5jpJkn98PjT0JCpLo9 HTP5aAEsOINdPMFkNse0mMqF2cMAus+B+vVDLIhOWoXPVGOp1QL/qxTKXSimLWfFKC1JMOhWJ Un/cA3W7Z1rzIrHhjr9qMxkCKan3ssOaskQnkmb3tc0yBa8zd4pKmTIPybwmEiHXLI+whU4kt zHQ5850 X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 25017-done Cc: andreas.roehler@easy-emacs.de, 25017-done@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) Philipp Stephani writes: > For purposes of this thread: As in Emacs Lisp, both VAR > and COUNT are required arguments. In general, I'd prefer > that Emacs Lisp not diverge from but converge toward > Common Lisp. > > The (implicit) decision to diverge further from Common Lisp has been > made a while ago, by prefixing the CL functions with `cl' and > importing the `seq' and `map' libraries, which provide similar > functionality, but with a different interface. Maybe (though, I don't think there was such decision, implicit or not - "seq" and "map" functions also have an according prefix - I wouldn't say we are converging are diverging to/from Common Lisp at all, but give developers a stylistic choice). But here were are talking about a construct that exists in pure Elisp, and OTOH also in Common Lisp, sharing the same name. If there is not really a need to make the semantics differ, I prefer to leave things as they are, because everything else would probably be more confusing than helpful. Regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 28 11:54:26 2016 Received: (at 25017-done) by debbugs.gnu.org; 28 Nov 2016 16:54:26 +0000 Received: from localhost ([127.0.0.1]:45150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBPCD-0005hf-W1 for submit@debbugs.gnu.org; Mon, 28 Nov 2016 11:54:26 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:50028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBPCC-0005hT-3u for 25017-done@debbugs.gnu.org; Mon, 28 Nov 2016 11:54:24 -0500 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uASGsH24004345 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 Nov 2016 16:54:17 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id uASGsGbf022502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 Nov 2016 16:54:16 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id uASGsFN9019445; Mon, 28 Nov 2016 16:54:15 GMT MIME-Version: 1.0 Message-ID: <2e72cdb4-d73d-4b41-b8d2-ffb47ce7b8c7@default> Date: Mon, 28 Nov 2016 08:54:13 -0800 (PST) From: Drew Adams To: Michael Heerdegen , Philipp Stephani Subject: RE: bug#25017: Fwd: Re: dotimes var comiler warning References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> <87zikpkkej.fsf@gmx.de> <87ziko4yaq.fsf@web.de> <87vavc4xsx.fsf@web.de> <34f65954-78b3-4063-a971-cc020e482677@default> <87mvglusuh.fsf@web.de> <555aa16a-98d0-4427-9db1-ca4f857a6ddd@default> <87k2bn1s7e.fsf@web.de> In-Reply-To: <87k2bn1s7e.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: 25017-done Cc: andreas.roehler@easy-emacs.de, 25017-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) > > The (implicit) decision to diverge further from Common Lisp has > > been made a while ago, by prefixing the CL functions with `cl' and > > importing the `seq' and `map' libraries, which provide similar > > functionality, but with a different interface. >=20 > Maybe (though, I don't think there was such decision, implicit or > not - "seq" and "map" functions also have an according prefix - I > wouldn't say we are converging are diverging to/from Common Lisp > at all, but give developers a stylistic choice). But here were > are talking about a construct that exists in pure Elisp, and OTOH > also in Common Lisp, sharing the same name. If there is not > really a need to make the semantics differ, I prefer to leave > things as they are, because everything else would probably be > more confusing than helpful. +1. Well put. From unknown Fri Jun 13 10:16:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 27 Dec 2016 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator