From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65888 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: declare-function in files from Gnus (hashcash.el, imap.el) Date: Wed, 05 Dec 2007 16:01:05 -0500 Message-ID: <53fxyg97qm.fsf@fencepost.gnu.org> References: <200712011634.lB1GYCkr018222@oogie-boogie.ics.uci.edu> <87mysuwdcx.fsf@neutrino.caeruleus.net> <87ac27w4lz.fsf@neutrino.caeruleus.net> <87u00eufga.fsf@neutrino.caeruleus.net> <200712022237.lB2MbNC8016800@oogie-boogie.ics.uci.edu> <200712032340.lB3Ne3Vt009200@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196888494 32473 80.91.229.12 (5 Dec 2007 21:01:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2007 21:01:34 +0000 (UTC) Cc: To: emacs-devel@gnu.org Original-X-From: ding-owner+M14383@lists.math.uh.edu Wed Dec 05 22:01:44 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1J01NH-0000jY-3o for ding-account@gmane.org; Wed, 05 Dec 2007 22:01:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1J01Mp-0007Me-66; Wed, 05 Dec 2007 15:01:15 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1J01Mo-0007MS-2S for ding@lists.math.uh.edu; Wed, 05 Dec 2007 15:01:14 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1J01Mi-0004vV-6j for ding@lists.math.uh.edu; Wed, 05 Dec 2007 15:01:13 -0600 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1J01Mf-0002hL-00 for ; Wed, 05 Dec 2007 22:01:05 +0100 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1J01Mf-0006QH-St; Wed, 05 Dec 2007 16:01:05 -0500 X-Spook: Cocaine Ceridian crypto anarchy number key Defcon NORAD X-Ran: nY;]9`iev~gbp&6E&=J$}0{[!5_{A&s[I:sU"[\qrE|%DuS2Koi2,h&E`K.|YiE+G/A{05 X-Hue: cyan X-Attribution: GM In-Reply-To: (Reiner Steib's message of "Wed, 05 Dec 2007 21:35:00 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65888 gmane.emacs.devel:84748 Archived-At: Reiner Steib wrote: > $ grep declare-function emacs/lisp/net/imap.el > (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))) You need to wrap that in an (eval-and-compile), or use the --eval route. > If some code test (fboundp 'declare-function) it probably expects that > `declare-function' exists an DTRT. And it might be confusing if the > availability of `declare-function' depends on whether or not the user > has loaded such a package. declare-function does nothing. It will always do nothing. It exists solely for the benefit of the byte-compiler. Without the supporting code in bytecomp.el, it doesn't matter what defines it or where. It makes no sense to test (fboundp 'declare-function).