emacs-devel
[Top][All Lists]
Advanced

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

Autoloading of defcustoms etc


From: Lennart Borgman
Subject: Autoloading of defcustoms etc
Date: Thu, 6 Jan 2005 21:10:15 +0100

> It is a generic problem that customize variables are only visible when
> a package is loaded.  It should be fixed, but for all variables, not
> by adding autoloads for individual variables.

Per A wrote this in another thread. I have taken a look at this and got
helpful feedback from Per. My suggestion is that autoload.el autoloads all
defcustom, define-minor-mode, defface and defgroup whether they are marked
for autoloading or not.

I have attached a simple change for generate-file-autoloads that does this.
(Unfortunately this is for Emacs 21.3.1 which is what I am currently using,
but I guess you can get the idea.)

When doing this it may also be important that custom GUI warns before
loading a package. Has this been taking care of already perhaps?

Another important thing is perhaps that the user is warned if customized
variable is saved but will not be used (because it does not require its
package and that package was not loaded when customize accessed the symbol)?

- Lennart

Attachment: autoload-fix.el
Description: Binary data


reply via email to

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