help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lambdas for beginners broken - help, please


From: Eduardo Ochs
Subject: Re: Lambdas for beginners broken - help, please
Date: Thu, 25 Jul 2024 09:49:46 -0300

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 via email to

[Prev in Thread] Current Thread [Next in Thread]