From: Michael Heerdegen <michael_heerdegen@web.de>
To: 51695@debbugs.gnu.org
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 [thread overview]
Message-ID: <877ddfzid2.fsf@web.de> (raw)
In-Reply-To: <87r1bozlzu.fsf@zoho.eu> (Emanuel Berg via's message of "Wed, 10 Nov 2021 05:13:25 +0100")
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.
next prev parent reply other threads:[~2021-11-10 23:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-08 23:40 bug#51695: 29.0.50; lexical scope closure, interactive spec byte compiler warnings/usage issue Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09 12:29 ` Eli Zaretskii
2021-11-10 1:39 ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-10 1:54 ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-10 13:20 ` Eli Zaretskii
2021-11-09 13:14 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09 23:32 ` Michael Heerdegen
2021-11-10 1:50 ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-10 4:13 ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-10 23:44 ` Michael Heerdegen [this message]
2021-11-11 1:55 ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-11 4:14 ` Michael Heerdegen
2022-09-20 12:13 ` Lars Ingebrigtsen
2022-09-23 20:37 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-24 10:31 ` Lars Ingebrigtsen
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=877ddfzid2.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=51695@debbugs.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).