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

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

bug#51695: 29.0.50; lexical scope closure, interactive spec byte compile


From: Michael Heerdegen
Subject: bug#51695: 29.0.50; lexical scope closure, interactive spec byte compiler warnings/usage issue
Date: Thu, 11 Nov 2021 00:44:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Emanuel Berg via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

> `defalias' and `lambda' BTW, isn't that an anonymous function
> with a name ... maybe an ordinary function makes more sense
> there, especially since `declare-function' has to be used?
>
> Or why a lambda?

Any `defun' call expands into a defalias form (plus optional
declarations).  It's a matter of taste what to use in this case - I use
`defalias' with the "naked" lambda to emphasize that it's important here
that a closure is involved, but that's irrelevant, you can do as
you wish.

Michael.





reply via email to

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