From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: declare-function in files from Gnus (hashcash.el, imap.el) Date: Sun, 02 Dec 2007 05:44:15 +0900 Message-ID: <87tzn2jgbk.fsf@uwakimon.sk.tsukuba.ac.jp> References: <200712011634.lB1GYCkr018222@oogie-boogie.ics.uci.edu> <87mysuwdcx.fsf@neutrino.caeruleus.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196541739 19558 80.91.229.12 (1 Dec 2007 20:42:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2007 20:42:19 +0000 (UTC) Cc: Dan Nicolaescu , emacs-devel@gnu.org To: Ralf Angeli Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 01 21:42:25 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IyZAM-0000p9-7N for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2007 21:42:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyZA5-00010B-PD for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2007 15:42:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IyZ9W-0000Fx-0k for emacs-devel@gnu.org; Sat, 01 Dec 2007 15:41:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IyZ9T-0000Bb-J5 for emacs-devel@gnu.org; Sat, 01 Dec 2007 15:41:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyZ9T-0000BN-Ei for emacs-devel@gnu.org; Sat, 01 Dec 2007 15:41:27 -0500 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IyZ9S-0000NV-Ek for emacs-devel@gnu.org; Sat, 01 Dec 2007 15:41:27 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (unknown [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id 15D4E8003; Sun, 2 Dec 2007 05:41:25 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 9ED7B11FA3F; Sun, 2 Dec 2007 05:44:15 +0900 (JST) In-Reply-To: <87mysuwdcx.fsf@neutrino.caeruleus.net> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" (+CVS-20070621) XEmacs Lucid X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84441 Archived-At: 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?