[Top][All Lists]

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

Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie.

From: Stefan Monnier
Subject: Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576)
Date: Fri, 20 May 2016 14:29:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> I'm all for it.  But as long as no one is working on that, I see no
> better way than autoloading the variables.

All of them?
Because if not "all" of them, then you only solve 1% of the problem.

BTW, I have worked on that.  I have code which adds statements of the form

   (register-definition-prefixes "find-dired"
                                 '("find-" "lookfor-dired" "kill-find"))

in the loaddefs.el file (these are auto-generated by autoloads.el), and
which indicate that if we need something that starts with "find-" we
may find it in "find-dired".

Then things like set-variable (and C-h f, C-h v ...) can use this data
to load the relevant packages during completion.  Note that for server.el,
my code generates nothing at all, since we can instead rely on the
principle that "foo-bar" definitions can usually be found in foo.el.

The fact that it integrates with autoloads.el means that it could also
work with packages installed via package.el, rather than only for
core packages.


reply via email to

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