From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47056 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: spam.el and missing functions Date: Tue, 08 Oct 2002 10:42:22 -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 1034087992 19758 127.0.0.1 (8 Oct 2002 14:39:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 8 Oct 2002 14:39:52 +0000 (UTC) Cc: ding@gnus.org 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 17yvWY-00058Q-00 for ; Tue, 08 Oct 2002 16:39: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 17yvVu-0001oi-00; Tue, 08 Oct 2002 09:39:10 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 08 Oct 2002 09:39:53 -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 JAA14482 for ; Tue, 8 Oct 2002 09:39:41 -0500 (CDT) Original-Received: (qmail 5127 invoked by alias); 8 Oct 2002 14:38:52 -0000 Original-Received: (qmail 5120 invoked from network); 8 Oct 2002 14:38:52 -0000 Original-Received: from ns3.beld.net (208.229.215.83) by gnus.org with SMTP; 8 Oct 2002 14:38:51 -0000 Original-Received: from heechee.beld.net (unknown [65.202.179.7]) by ns3.beld.net (Postfix) with ESMTP id C04E33B8C1; Tue, 8 Oct 2002 10:38:50 -0400 (EDT) Original-To: Katsumi Yamaoka 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: Katsumi Yamaoka , ding@gnus.org In-Reply-To: (Katsumi Yamaoka's message of "Tue, 08 Oct 2002 21:21:34 +0900") Original-Lines: 66 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:47056 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47056 On Tue, 08 Oct 2002, yamaoka@jpl.org wrote: > When compiling spam.el, Emacs complaints about missing functions: > > Emacs 20.7: > ** The following functions are not known to be defined: > bbdb-search, bbdb-records, locate-file, > display-message-or-buffer > > Emacs 21.2: > ** The following functions are not known to be defined: > bbdb-search, bbdb-records, locate-file > > Emacs 21.3.50: spam.el:544:11:Warning: the following functions are > not known to be defined: bbdb-search, bbdb-records > > XEmacs 21.4.10: > ** The following functions are not known to be defined: > bbdb-search, bbdb-records, display-message-or-buffer (summary: BBDB problems fixed, I need help with locate-file and display-message-or-buffer) locate-file is used by this code: ;; FIXME! I do not know if Gnus has a compatibility function for ;; `executable-find'. Here is a possible mantra for portability, ;; until Lars decides how we really should do it. (unless (fboundp 'executable-find) (if (fboundp 'locate-file) (defun executable-find (command) (locate-file command exec-path)) (autoload 'executable-find "executable"))) ;; End of portability mantra for `executable-find'. (defvar spam-bogofilter-path (executable-find "bogofilter") "File path of the Bogofilter executable program. Force this variable to nil if you want to inhibit the functionality.") I would appreciate suggestions, I don't know the right way to fix this. I fixed the BBDB errors with: ;; BBDB autoloads (autoload 'bbdb-search "bbdb-com") (autoload 'bbdb-records "bbdb-com") The display-message-or-buffer function is used by this function: (defun spam-bogofilter-score () "Use `bogofilter -v' on the current article. This yields the 15 most discriminant words for this article and the spamicity coefficient of each, and the overall article spamicity." (interactive) (when (and spam-use-bogofilter spam-bogofilter-path) (spam-bogofilter-articles nil "-v" (list (gnus-summary-article-number))) (save-excursion (set-buffer spam-output-buffer-name) (unless (= (point-min) (point-max)) (display-message-or-buffer (current-buffer) spam-output-buffer-name))))) Any suggestions? display-message-or-buffer is in the simple.el package, but I don't know what to use instead of it. Thanks Ted