From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47069 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: spam.el and missing functions Date: Wed, 09 Oct 2002 10:53:49 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034175112 4591 127.0.0.1 (9 Oct 2002 14:51:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2002 14:51:52 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17zIBj-0001Bt-00 for ; Wed, 09 Oct 2002 16:51:51 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17zIAV-00074h-00; Wed, 09 Oct 2002 09:50:35 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 09 Oct 2002 09:51:16 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id JAA16878 for ; Wed, 9 Oct 2002 09:51:03 -0500 (CDT) Original-Received: (qmail 12364 invoked by alias); 9 Oct 2002 14:50:16 -0000 Original-Received: (qmail 12359 invoked from network); 9 Oct 2002 14:50:16 -0000 Original-Received: from ns3.beld.net (208.229.215.83) by gnus.org with SMTP; 9 Oct 2002 14:50:16 -0000 Original-Received: from heechee.beld.net (unknown [65.202.179.7]) by ns3.beld.net (Postfix) with ESMTP id BD0C03B85C for ; Wed, 9 Oct 2002 10:50:15 -0400 (EDT) Original-To: ding@gnus.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: ding@gnus.org In-Reply-To: (Katsumi Yamaoka's message of "Wed, 09 Oct 2002 10:02:58 +0900") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-redhat-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47069 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47069 On Wed, 09 Oct 2002, yamaoka@jpl.org wrote: >> I fixed the BBDB errors with: > >> ;; BBDB autoloads >> (autoload 'bbdb-search "bbdb-com") > > Unfortunately, it doesn't fix. The byte-compiler still generates > the byte-code which is equivalent to `(funcall 'bbdb-search args)' > in the function `spam-check-bbdb' > Since the macro definition of `bbdb-search' should be expanded > before byte-compiling the function `spam-check-bbdb', > bbdb-com.elc should be loaded at the compile time rather than > autoloaded. The following code will help only BBDB users who > have already installed BBDB. OK, I added your patch (if I understand correctly, it still autoloads the bbdb-records function, but the bbdb-search macro needs special treatment), but what do we do if the user does not have BBDB installed? As far as I'm concerned, spam-check-bbdb can just be an empty function without a BBDB installation, or it can raise an error. Ted