From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Subject: Re: spam.el mega patch
Date: Tue, 25 Nov 2003 15:11:28 +0100 [thread overview]
Message-ID: <v9zneksflb.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <4nr7zxeoeg.fsf@lockgroove.bwh.harvard.edu>
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/
next prev parent reply other threads:[~2003-11-25 14:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-23 6:04 Ted Zlatanov
2003-11-23 13:38 ` Ted Zlatanov
2003-11-24 12:46 ` Reiner Steib
2003-11-24 16:12 ` Ted Zlatanov
2003-11-25 14:11 ` Reiner Steib [this message]
2003-11-25 18:26 ` Ted Zlatanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9zneksflb.fsf@marauder.physik.uni-ulm.de \
--to=4.uce.03.r.s@nurfuerspam.de \
--cc=reiner.steib@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).