emacs-wiki-discuss
[Top][All Lists]
Advanced

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

Re: [emacs-wiki-discuss] Re: 'planner-create-task-from-buffer' is not au


From: Frederik Fouvry
Subject: Re: [emacs-wiki-discuss] Re: 'planner-create-task-from-buffer' is not autoloaded.
Date: Thu, 14 Jul 2005 11:58:51 +0200 (CEST)

,-- On Wed, 13 Jul 2005 23:46:34 +0200, drkm wrote:
| 

[...]

| > And variables.  (Useful to make package variables available to
| > external packages before loading the file.)  But probably
| > defcustom() variables are automatically autoloaded ...
| 
|   No.  I can't see how they could be.

Because update-file-autoloads generates from (defcustom ...) for
a variable the following:

   (defvar ...)

   (custom-autoload ...)


(See a.o. code for make-autoload().)

[...]

| > Some guidelines: if a function starts with an (interactive ...)
| > declaration, it is a good/likely candidate for autoload.
| 
|   No.  The good condidates are the main entry points (with a good
| definition for "main entry point" :-p).  A lot of interactive
| functions can be called only in Planner Mode (so when planner.el
| is loaded).

That's what I wrote in the following paragraph, so it seems we
agree ;-)

> Interactive functions that are never called first thing in
> Planner (such as planner-renumber-tasks) need not be autoloaded,
> because planner mode is loaded first anyway.

[...]

F




reply via email to

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