unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: uzibalqa <uzibalqa@proton.me>
To: uzibalqa via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: ;;;###autoload declarations
Date: Fri, 23 Jun 2023 11:09:55 +0000	[thread overview]
Message-ID: <91a7W5OWdKtKD4A-ZeZZUeCLNTxNm82hYVDTZ-_uC1JiI1KzGZZVYF4HuUMdxyursZQ-CgIXKRziOKd2FRj9rL_7ADQ7Rjn7gu2CaCgSNA4=@proton.me> (raw)

Have been looking at the ;;;###autoload declaration.  Reading through the manual,
the cookie just before the real definition of a function, indicates that a specific
function exists.  Without such declaration, the function call would generate an error
because the required function has not been properly included in the code before 
attempting to call the function.  This is done so that emacs would not consume system
resources and slow down.

Yet, one still needs a call to "require" which loads the file and all its deffun's and
defvar's even without any use of the ;;;###autoload declaration.

It then seems to me that although autoloading is intended as described, technically 
it is untrue, because everything seems to be evaluated all in one go.

What is going on ?











             reply	other threads:[~2023-06-23 11:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-23 11:09 uzibalqa [this message]
2023-06-23 16:08 ` ;;;###autoload declarations Michael Heerdegen
2023-06-23 16:42   ` uzibalqa
2023-06-24  2:02     ` Michael Heerdegen
2023-06-24 11:27       ` uzibalqa
2023-06-25  1:55         ` Michael Heerdegen
2023-06-23 18:26   ` Emanuel Berg
2023-06-26 13:27     ` [External] : " Drew Adams
2023-06-30 15:35       ` Emanuel Berg
2023-07-03 15:59         ` Drew Adams

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='91a7W5OWdKtKD4A-ZeZZUeCLNTxNm82hYVDTZ-_uC1JiI1KzGZZVYF4HuUMdxyursZQ-CgIXKRziOKd2FRj9rL_7ADQ7Rjn7gu2CaCgSNA4=@proton.me' \
    --to=uzibalqa@proton.me \
    --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.
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).