From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mike Woolley Newsgroups: gmane.emacs.bugs Subject: bug#39919: 26.3; Incorrect byte-compiler warning Date: Tue, 28 Apr 2020 17:35:47 +0100 Message-ID: <5F5C5856-EBFE-4359-91CB-1FE592865B23@bulsara.com> References: <24319F54-ED52-478E-8247-25FA71F27F47@bulsara.com> <87imjihpws.fsf@web.de> <9EC3F872-B2C7-4CAE-8674-6D7EEB4E0AF5@bulsara.com> <87a74uholh.fsf@web.de> <871rq6h2ah.fsf@web.de> <877dy07253.fsf@web.de> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_08C74B19-DA31-4FB9-9471-CC25C0AA48BF" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="1414"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39919@debbugs.gnu.org, 31232@debbugs.gnu.org, rms@gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 28 18:43:07 2020 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 1jTTK7-0000Fs-Oq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Apr 2020 18:43:07 +0200 Original-Received: from localhost ([::1]:38872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTTK6-0006vr-Ez for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Apr 2020 12:43:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34524) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTTFc-00073z-F7 for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 12:38:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTTDH-0002bS-Il for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 12:38:28 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTTDH-0002bL-3l for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 12:36:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTTDG-0005ps-Vo for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 12:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike Woolley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Apr 2020 16:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39919 X-GNU-PR-Package: emacs Original-Received: via spool by 39919-submit@debbugs.gnu.org id=B39919.158809176222424 (code B ref 39919); Tue, 28 Apr 2020 16:36:02 +0000 Original-Received: (at 39919) by debbugs.gnu.org; 28 Apr 2020 16:36:02 +0000 Original-Received: from localhost ([127.0.0.1]:41188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTTDF-0005pR-NM for submit@debbugs.gnu.org; Tue, 28 Apr 2020 12:36:02 -0400 Original-Received: from mailout.easymail.ca ([64.68.200.34]:54222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTTDD-0005p8-JH; Tue, 28 Apr 2020 12:36:00 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 4A195C192B; Tue, 28 Apr 2020 16:35:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo04-pco.easydns.vpn Original-Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo04-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nyRG08KC76ZN; Tue, 28 Apr 2020 16:35:54 +0000 (UTC) Original-Received: from [192.168.1.185] (host81-147-19-148.range81-147.btcentralplus.com [81.147.19.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 65FA6C0A8A; Tue, 28 Apr 2020 16:35:49 +0000 (UTC) In-Reply-To: <877dy07253.fsf@web.de> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:179222 Archived-At: --Apple-Mail=_08C74B19-DA31-4FB9-9471-CC25C0AA48BF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I think people using `dotimes' from `cl=E2=80=99 are going to expect it = to work like in Common Lisp (as that=E2=80=99s the whole point). Just deprecating the result parameter because it=E2=80=99s too hard = doesn=E2=80=99t seem like a good solution :-) Thanks, Mike > On 28 Apr 2020, at 03:52, Michael Heerdegen = wrote: >=20 > Mike Woolley writes: >=20 >> Yes that fixes the issue in the test cases I sent. >> Also looks good in my real code where I noticed the problem! >=20 > Seems the current warning is a compromise. It is not perfect because = it > is not really clear what the warning means. I would vote for a clear > "argument is deprecated" warning. >=20 > Michael. --Apple-Mail=_08C74B19-DA31-4FB9-9471-CC25C0AA48BF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I = think people using `dotimes' from `cl=E2=80=99 are going to expect it to = work like in Common Lisp (as that=E2=80=99s the whole point).

Just deprecating the = result parameter because it=E2=80=99s too hard doesn=E2=80=99t seem like = a good solution :-)

Thanks,
Mike

On 28 Apr 2020, at 03:52, Michael Heerdegen <michael_heerdegen@web.de> wrote:

Mike = Woolley <mike@bulsara.com> writes:

Yes that fixes the issue = in the test cases I sent.
Also looks good in my real code = where I noticed the problem!

Seems the current warning is a compromise.  It is not = perfect because it
is not really clear what the warning = means.  I would vote for a clear
"argument is = deprecated" warning.

Michael.

= --Apple-Mail=_08C74B19-DA31-4FB9-9471-CC25C0AA48BF--