From: "Hibou57 (Yannick Duchêne)" <yannick_duchene@yahoo.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: How does M-x completion works
Date: Tue, 23 Feb 2010 08:06:06 +0100 [thread overview]
Message-ID: <op.u8kjcgzjvwnd5a@garhos> (raw)
In-Reply-To: 4b82ff9b$0$279$14726298@news.sunsite.dk
Le Mon, 22 Feb 2010 23:06:45 +0100, Colin S. Miller
<no-spam-thank-you@csmiller.demon.co.uk> a écrit:
Hi Colin,
> allout is probably still registered as an autoload.
> Most of emacs's non-core functionality is provided by autoloaded
> functions.
And moreoever, it seems registered in an hard coded way, as the exe
contains the string "autoload-mode".
> An emacs autoload is where a function can be registered with emacs, but
> not actually loaded.
> When the function is first used in this instance of emacs, the defining
> library is automatically loaded, and then the function is called as per
> usual.
> This allows emacs to provide a lot of functionality without the memory
> and start-up
> over head of actually loading the function at start up.
Yes, I've seen about section 15.1 and 15.5 in the Emacs Lisp reference.
Something else also takes part here : a file named loaddefs.el, which
contains a list of autoload definitions (which seems to confirm Emacs is
not scanning modules at start up). I've also tried to remove this file,
this does not change anything.
> What does C-h f allout-mode say?
Well, it gives the help about the allout moode :)
> If it is "allout-mode is an interactive autoloaded Lisp function in
> `allout'."
Yes, it is.
> then it's an unloaded autoload,
Yes, I was to remove it (as an example).
> if its "allout-mode is an interactive compiled Lisp function in
> `allout.el'."
> then allout-mode has actually been loaded.
Actually, it is not.
Well, as it seems to be a hard coded reference (I looked at strings
contained in the exe, there seems to be a lot like this), I may try to add
a script, which, at startup, will iterate on autoload definitions, check
for each if the corresponding file exist, and if the file if not there,
then remove the definition (if possible). Or perhaps, as an other
alternative, recompile an Emacs without the unneeded hard coded
definitions.
Happy writing
--
No-no, this isn't an oops ...or I hope (TM) - Don't blame me... I'm just
not lucky
next prev parent reply other threads:[~2010-02-23 7:06 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 12:35 How does M-x completion works Hibou57 (Yannick Duchêne)
2010-02-22 16:34 ` Lennart Borgman
[not found] ` <4B82A7A4.6050005@easy-emacs.de>
[not found] ` <op.u8jfv6nuesn74s@garhos>
2010-02-22 17:42 ` Andreas Röhler
2010-02-22 22:06 ` Colin S. Miller
2010-02-23 7:06 ` Hibou57 (Yannick Duchêne) [this message]
2010-02-23 8:36 ` Barry Margolin
2010-02-23 9:25 ` Hibou57 (Yannick Duchêne)
2010-02-23 10:03 ` Andreas Röhler
[not found] ` <mailman.1694.1266919287.14305.help-gnu-emacs@gnu.org>
2010-02-23 13:47 ` Hibou57 (Yannick Duchêne)
2010-02-23 15:18 ` Andreas Röhler
2010-02-24 3:44 ` Kevin Rodgers
2010-02-26 13:12 ` Andreas Röhler
[not found] ` <mailman.1758.1266983111.14305.help-gnu-emacs@gnu.org>
2010-02-26 11:58 ` Hibou57 (Yannick Duchêne)
[not found] ` <mailman.1706.1266938167.14305.help-gnu-emacs@gnu.org>
2010-02-23 17:17 ` Hibou57 (Yannick Duchêne)
2010-02-23 19:32 ` Andreas Röhler
[not found] ` <mailman.1728.1266953431.14305.help-gnu-emacs@gnu.org>
2010-02-23 21:24 ` Tim X
2010-02-24 4:08 ` Kevin Rodgers
2010-02-24 20:10 ` Stefan Monnier
2010-02-24 4:10 ` Kevin Rodgers
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.u8kjcgzjvwnd5a@garhos \
--to=yannick_duchene@yahoo.fr \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.