unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Richard Stallman <rms@gnu.org>
Cc: 39919@debbugs.gnu.org, mike@bulsara.com
Subject: bug#39919: 26.3; Incorrect byte-compiler warning
Date: Sun, 08 Mar 2020 01:49:08 +0100	[thread overview]
Message-ID: <877dzvk6wr.fsf@web.de> (raw)
In-Reply-To: <E1jAQzO-000158-Tk@fencepost.gnu.org> (Richard Stallman's message of "Fri, 06 Mar 2020 23:23:02 -0500")

Richard Stallman <rms@gnu.org> writes:

> I can't easily obtain that discussion.  Perhaps that discussion
> turned up some other reason to deprecated that argument.

Yes: the reason was that it's not very useful, the order of
execution is strange, and it's easy to avoid, so, to cite Stefan, "Which
is why I think the current behavior of complaining when the third field
is used (except in the very rare case where the third field refers to
the iteration variable) is a fairly good compromise."

> But if it was solely to avoid these warnings, I am surprised it is
> hard.
>
> Does this patch fix the problem?

Yes, that should work.  I don't consider it a good fix because it just
hides the underlying problem (I guess that's why the original author
added the FIXME instead of fixing it in this obvious way).  We have
manifestations of the same issue in other places that, AFAIR, can't be
fixed in the same way.

Anyway, I think the warning currently raised is not helpful, it is
confusing if you didn't read the related bug reports.  I guess we could
just say that the argument is deprecated.  Maybe that didn't happen
because dotimes in Common Lisp has that third argument too (as mentioned
in the other reports).

Michael.





      parent reply	other threads:[~2020-03-08  0:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-04 23:18 bug#39919: 26.3; Incorrect byte-compiler warning Mike Woolley
2020-03-05 13:50 ` Michael Heerdegen
2020-03-05 14:01   ` Mike Woolley
2020-03-05 14:18     ` Michael Heerdegen
2020-03-05 22:20       ` Michael Heerdegen
2020-03-07  4:23         ` Richard Stallman
2020-03-07 12:52           ` Mike Woolley
2020-04-28  2:52             ` Michael Heerdegen
2020-04-28 16:35               ` Mike Woolley
2020-04-28 18:08                 ` bug#31232: " Michael Heerdegen
2020-04-28 18:48                   ` Mike Woolley
2020-04-28 20:14                     ` Michael Heerdegen
2020-03-08  0:49           ` Michael Heerdegen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877dzvk6wr.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=39919@debbugs.gnu.org \
    --cc=mike@bulsara.com \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).