[Top][All Lists]

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

Re: declare-function in files from Gnus (hashcash.el, imap.el)

From: Stephen J. Turnbull
Subject: Re: declare-function in files from Gnus (hashcash.el, imap.el)
Date: Sun, 02 Dec 2007 05:44:15 +0900

Ralf Angeli writes:

 > How about putting stuff like that in some sort of header file instead
 > of polluting the package code?

What you want IMO is an equivalent of the (misnamed!!) REQUIRES
environment of XEmacs's package system.

Specifically, in an XEmacs package's Makefile, there is a Make
variable REQUIRES which is set to a list of packages used but not
actually `require'd by the package being compiled.  This of course
only works if the functions are autoloaded in the normal environment,
so what setting REQUIRES does is to arrange to load the autoloads of
those packages.

What I don't understand about Emacs's compile process is that Emacs
doesn't depend on external packages.  Why don't these functions get
declared in Emacs's dumped libraries or autoloads?

reply via email to

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