From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55880 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: bug/feature?: gnus-data-list is not ready in Date: Fri, 09 Jan 2004 16:41:58 -0500 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: <4nu134ol3t.fsf@collins.bwh.harvard.edu> References: <4nr7yagikr.fsf@collins.bwh.harvard.edu> <4ny8silyz4.fsf@collins.bwh.harvard.edu> <4nk741otcx.fsf_-_@collins.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073684633 17914 80.91.224.253 (9 Jan 2004 21:43:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2004 21:43:53 +0000 (UTC) Original-X-From: ding-owner+M4420@lists.math.uh.edu Fri Jan 09 22:43:42 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Af4Pt-0007GN-00 for ; Fri, 09 Jan 2004 22:43:42 +0100 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 1Af4PT-0004ft-00; Fri, 09 Jan 2004 15:43:15 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Af4PP-0004fo-00 for ding@lists.math.uh.edu; Fri, 09 Jan 2004 15:43:11 -0600 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id A421E3A006B for ; Fri, 9 Jan 2004 15:43:10 -0600 (CST) Original-Received: from collins.bwh.harvard.edu (collins [134.174.9.80]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id i09Lg4W14870 for ; Fri, 9 Jan 2004 16:42:04 -0500 (EST) Original-Received: from collins.bwh.harvard.edu (localhost [127.0.0.1]) by collins.bwh.harvard.edu (8.12.9+Sun/8.11.0) with ESMTP id i09LfxuB006970 for ; Fri, 9 Jan 2004 16:41:59 -0500 (EST) Original-Received: (from tzz@localhost) by collins.bwh.harvard.edu (8.12.9+Sun/8.12.9/Submit) id i09LfxW3006967; Fri, 9 Jan 2004 16:41:59 -0500 (EST) Original-To: Ding Mailing List 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 Mailing List In-Reply-To: <4nk741otcx.fsf_-_@collins.bwh.harvard.edu> (Ted Zlatanov's message of "Fri, 09 Jan 2004 13:43:42 -0500") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55880 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55880 On Fri, 09 Jan 2004, tzz@lifelogs.com wrote: > Hmm, now I got the error in other news servers. I think the > gnus-data-list function is not ready to give me valid data in the > gnus-summary-prepare hook. Can anyone tell me how I can circumvent > this? Bah, it was so simple I never thought of it. gnus-newsgroup-data is buffer-local to the gnus-summary-buffer. I was doing my insertion in a (with-temp-buffer) form, so debugging was showing me everything was fine but when I ran things they didn't work. Incidentally, (with-current-buffer) inside a (with-temp-buffer) form does not do the right thing with regards to buffer-local variables. I'm fighting the urge to spell "buffer" as "bugger" :) Sorry for the trouble. Fix is in CVS - the latest spam.el should be much, much faster at autodetecting articles when using non-statistical backends such as spam-use-BBDB. It will still request the complete article if a backend that uses statistics or extra headers needs it, such as spam-use-bogofilter, but when possible a "fake" article will be built instead from the overview data, and the backend function will be run on that. The speedup is tremendous - spam-autodetect is finally, I think, fast enough for regular usage. Ted