unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen via "Emacs development discussions." <emacs-devel@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: Commands, term "closure" and online help
Date: Sun, 14 Jul 2024 09:29:09 +0200	[thread overview]
Message-ID: <87sewc8m9m.fsf@web.de> (raw)
In-Reply-To: 86h6cs1olc.fsf@gmail.com

Joel Reicher <joel.reicher@gmail.com> writes:

> > Aren't "dynamically defined functions" bytecode functions when
> > running compiled code?  So this would not be a better term.
>
> Which bit of the documentation are you thinking of? I can't find that
> phrase with reference to bytecode.

We are talking about the generated documentation in *Help*, right?  I've
just been using my own words.

>
> > AFAIU we want to tell that these functions will, when funcalled, be
> > handled by the interpreter - thus, are interpreted functions in that
> > sense.
>
> My understanding is that the closure is constructed the moment the
> defun (et al) is done, regardless of whether the function is ever
> called.
>
> I'm not familiar with the implementation details but it looks to me
> from a trivial test this happens unconditionally; even when the
> function being defined does not capture anything from its enclosing
> scope...
>
> (defun blah ())
>
> C-x C-e and then C-h f blah to see what I mean. (Maybe this gets
> optimised later?)
>
> That's one of the reasons I think it might be helpful to refer to this
> simply as a function that is "dynamically created", or some variation
> on that.

I know what you want to say.  But technically, the only difference to
named functions and commands is that these are just unnamed.

But: Note that the wording used in the generated help pages has changed
since the start of this thread: we are currently saying (at least in
master) "interactive interpreted-function" or "interactive
byte-code-function".  Can you live with that?


Michael.




  reply	other threads:[~2024-07-14  7:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-15 14:51 Commands, term "closure" and online help T.V Raman
2024-04-15 14:56 ` Eli Zaretskii
2024-04-15 15:09   ` Eli Zaretskii
2024-04-15 15:49     ` T.V Raman
2024-04-15 16:17       ` Eli Zaretskii
2024-07-14  5:06         ` Joel Reicher
2024-07-14  5:55           ` Michael Heerdegen via Emacs development discussions.
2024-07-14  6:20             ` Joel Reicher
2024-07-14  7:29               ` Michael Heerdegen via Emacs development discussions. [this message]
2024-07-14  8:48                 ` Joel Reicher
2024-07-14 10:36                   ` Michael Heerdegen

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=87sewc8m9m.fsf@web.de \
    --to=emacs-devel@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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).