all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eduardo Ochs <eduardoochs@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Lambdas for beginners broken - help, please
Date: Thu, 25 Jul 2024 09:49:46 -0300	[thread overview]
Message-ID: <CADs++6gqG6oPzYxyvCuzG6fUhzzh=xR7Hok0x8ova_wMH3psOA@mail.gmail.com> (raw)
In-Reply-To: <86o76l4sew.fsf@gnu.org>

On Thu, 25 Jul 2024 at 08:34, Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Eduardo Ochs <eduardoochs@gmail.com>
> > Date: Thu, 25 Jul 2024 06:44:27 -0300
> > Cc: help-gnu-emacs@gnu.org
> >
> > On Thu, 25 Jul 2024 at 02:19, Eli Zaretskii <eliz@gnu.org> wrote:
> > >
> > > > Date: Wed, 24 Jul 2024 22:03:48 +0200
> > > > From:  Michael Heerdegen via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
> > > >
> > > > Agreed, this is at least misleading.  Stefan, Eli?
> > >
> > > What is misleading?
> > >
> > > I admit that I don't have a clear understanding of the issue: I don't
> > > understand what Eduardo wants to do in the first place, nor which
> > > version of Emacs broke what he did or why.  So maybe wait for Stefan
> > > to chime in.
> >
> > Hi Eli,
> >
> > lambda used to be:
> >
> >   self-quoting in dynamic binding,
> >   non-self-quoting in lexical binding.
> >
> > Now lambda is:
> >
> >   non-self-quoting in dynamic binding,
> >   non-self-quoting in lexical binding.
> >
> > So its docstring needs to be updated.
>
> What is "now"? which version of Emacs is that?
>
> And how is the current doc string misleading or unclear?


Hi Eli,

"now" is d2cb9f2bf6ef9f3fcd8c21455ca1f1e624e61bf4, dated Thu Jul 25
13:38:27 2024 +0200, pulled and compiled a few minutes ago.

The docstring for lambda says

  Return an anonymous function.
  Under dynamic binding, a call of the form (lambda ARGS DOCSTRING
  INTERACTIVE BODY) is self-quoting; the result of evaluating the
  lambda expression is the expression itself.  Under lexical
  binding, the result is a closure.  Regardless, the result is a
  function, i.e., it may be stored as the function value of a
  symbol, passed to ‘funcall’ or ‘mapcar’, etc.

and the sentence

  Under dynamic binding, a call of the form (lambda ARGS DOCSTRING
  INTERACTIVE BODY) is self-quoting; the result of evaluating the
  lambda expression is the expression itself.

is no longer true.

Cheers,
  Eduardo



  reply	other threads:[~2024-07-25 12:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-24  8:43 Lambdas for beginners broken - help, please Eduardo Ochs
2024-07-24 13:12 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-07-24 16:43   ` Eduardo Ochs
2024-07-24 20:03     ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-07-24 22:06       ` Eduardo Ochs
2024-07-25  5:18       ` Eli Zaretskii
2024-07-25  9:44         ` Eduardo Ochs
2024-07-25 11:33           ` Eli Zaretskii
2024-07-25 12:49             ` Eduardo Ochs [this message]
2024-07-25 14:53               ` Eli Zaretskii
2024-07-24 16:54 ` tpeplt
2024-07-24 18:49   ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-07-24 19:29     ` tpeplt
2024-07-24 19:58       ` Michael Heerdegen via Users list for the GNU Emacs text editor

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

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

  git send-email \
    --in-reply-to='CADs++6gqG6oPzYxyvCuzG6fUhzzh=xR7Hok0x8ova_wMH3psOA@mail.gmail.com' \
    --to=eduardoochs@gmail.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.