unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 45715@debbugs.gnu.org
Subject: bug#45715: 27.1; Doc string of `dotimes'
Date: Sun, 10 Jan 2021 15:13:29 +0100	[thread overview]
Message-ID: <87zh1gswvq.fsf@gnus.org> (raw)
In-Reply-To: <57f0a805-bef8-477e-b5f2-2e0bf787d556@default> (Drew Adams's message of "Thu, 7 Jan 2021 15:08:17 +0000 (UTC)")

Drew Adams <drew.adams@oracle.com> writes:

>   Loop a certain number of times.
>   Evaluate BODY with VAR bound to successive integers running from 0,
>   inclusive, to COUNT, exclusive.  Then evaluate RESULT to get the
>   return value (nil if RESULT is omitted).  Its use is deprecated.
>                                             ^^^
>
> In the last sentence, "its" is unclear.

Indeed, which is why it's

---
Finally RESULT is evaluated to get the return value (nil if
RESULT is omitted).  Using RESULT is deprecated, and may result
in compilation warnings about unused variables.
---

in Emacs 28.

> Also, that sentence is missing from the doc string of `cl-dotimes',
> even though it is present in the CL Info manual.  And for `cl-dotimes'
> it should be made clear that this "deprecation" is only about the
> Emacs Lisp emulation; the RETURN arg for Common Lisp `dotimes' has not
> been deprecated.

The two are different functions, so I don't see why.  Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2021-01-10 14:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-07 15:08 bug#45715: 27.1; Doc string of `dotimes' Drew Adams
2021-01-10 14:13 ` Lars Ingebrigtsen [this message]
2021-01-11 13:16   ` Noam Postavsky

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=87zh1gswvq.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=45715@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /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).