From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54940 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.gnus.general Subject: Re: spam.el mega patch Date: Tue, 25 Nov 2003 15:11:28 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Sender: ding-owner@lists.math.uh.edu Message-ID: References: <4n7k1rsjry.fsf@lockgroove.bwh.harvard.edu> <4n3ccfryr4.fsf@lockgroove.bwh.harvard.edu> <4nr7zxeoeg.fsf@lockgroove.bwh.harvard.edu> Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069769573 18904 80.91.224.253 (25 Nov 2003 14:12:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2003 14:12:53 +0000 (UTC) Original-X-From: ding-owner+M3480@lists.math.uh.edu Tue Nov 25 15:12:48 2003 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 1AOdvs-0001vH-00 for ; Tue, 25 Nov 2003 15:12:48 +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 1AOdvF-0007Eg-00; Tue, 25 Nov 2003 08:12:09 -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 1AOdv6-0007EY-00 for ding@lists.math.uh.edu; Tue, 25 Nov 2003 08:12:00 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 9C7C63A0027 for ; Tue, 25 Nov 2003 08:11:59 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AOdv4-0002DK-00 for ; Tue, 25 Nov 2003 15:11:58 +0100 Mail-Followup-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AOdv2-0002DC-00 for ; Tue, 25 Nov 2003 15:11:56 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AOdv2-0004sr-00 for ; Tue, 25 Nov 2003 15:11:56 +0100 Original-Lines: 45 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY;Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m,tWj]&},qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi,+g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:6em7kvBIeTJANzTB2Vd7XPYmkfw= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54940 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54940 On Mon, Nov 24 2003, Ted Zlatanov wrote: > ;;;; Spam-report glue > -(defun spam-report-gmane-register-routine () > - (spam-generic-register-routine > - 'spam-report-gmane > - nil)) > +(defun spam-report-gmane-register-routine (articles) > + (apply 'spam-report-gmane articles)) `apply' fails here when `articles' is nil: ,---- | ELISP> (defun rs-1 (arg) | t) | rs-1 | ELISP> (rs-1 nil) | t | ELISP> (apply 'rs-1 nil) | *** Eval error *** Wrong number of arguments: (lambda (arg) t), 0 | ELISP> `---- I don't know what's better: Calling `spam-report-gmane' only if `articles' is non-nil[1], making `articles' in `spam-report-gmane' optional[2] or use something else (what?) instead of `apply'. [1] (defun spam-report-gmane-register-routine (articles) (when articles (apply 'spam-report-gmane articles))) [2] (defun spam-report-gmane (&optional article) "Report an article as spam through Gmane" (interactive "nEnter the article number: ") (when (and article gnus-newsgroup-name [...]))) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/