From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52944 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: loading spam.el, spam-stat.el shouldn't install hooks Date: Fri, 30 May 2003 15:55:00 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4n3ciwgqgb.fsf@lockgroove.bwh.harvard.edu> References: <4nfznoyv2z.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054324492 19706 80.91.224.249 (30 May 2003 19:54:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 30 May 2003 19:54:52 +0000 (UTC) Cc: Ding Mailing List , Dave Love Original-X-From: ding-owner+M1488@lists.math.uh.edu Fri May 30 21:54:50 2003 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 19LpwC-0004zU-00 for ; Fri, 30 May 2003 21:53:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19LpyG-0005UR-00; Fri, 30 May 2003 14:55:24 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19LpyB-0005UM-00 for ding@lists.math.uh.edu; Fri, 30 May 2003 14:55:19 -0500 Original-Received: (qmail 98022 invoked by alias); 30 May 2003 19:55:18 -0000 Original-Received: (qmail 98017 invoked from network); 30 May 2003 19:55:18 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by sclp3.sclp.com with SMTP; 30 May 2003 19:55:18 -0000 Original-Received: from lockgroove.bwh.harvard.edu (lockgroove [134.174.9.133]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h4UJtGI15186; Fri, 30 May 2003 15:55:16 -0400 (EDT) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h4UJtGr10436; Fri, 30 May 2003 15:55:16 -0400 (EDT) Original-Newsgroups: gnus.gnus-bug 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" User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (usg-unix-v) Cancel-Lock: sha1:jH0Eg+mftGIkTZA9kQlufcnt8vU= Mail-Followup-To: Ding Mailing List , Dave Love In-Reply-To: (Dave Love's message of "Sun, 11 May 2003 15:16:16 +0100") Posted-To: gnus.gnus-bug Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52944 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52944 The following message is a courtesy copy of an article that has been posted to gnus.gnus-bug as well. I modified spam.el, spam-stat.el, and gnus-registry.el to do conditional loading of their hooks and to have an unload-hook function available. For the gnus-registry, you have to set gnus-registry-install. For spam-stat.el, spam-stat-install-hooks was already in place, so you probably already have it set if you need it. For spam.el, spam-install-hooks can be set to t. It will be nil by default unless the user has set one of the spam-use-* variables to t, e.g. spam-use-bogofilter or spam-use-stat. Dave, if you could check on this to make sure I am doing the right thing, I'd appreciate it. Ted