From: 4.uce.03.r.s@nurfuerspam.de (Reíner Steib)
Subject: Re: loading spam.el and gnus-registry.el with set variables only
Date: Thu, 09 Oct 2003 21:37:10 +0200 [thread overview]
Message-ID: <v9ekxmyzh5.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <4n8ynutho4.fsf@lockgroove.bwh.harvard.edu>
On Thu, Oct 09 2003, Ted Zlatanov wrote:
> Let me know if the attached patch looks OK.
I don't understand the need and the use of the variable
`spam-install-hooks':
(defcustom spam-use-dig t
[...])
[... other spam-use-VAR defaulting to nil ...]
(defcustom spam-install-hooks (or
spam-use-dig
spam-use-blacklist
[...]
spam-use-stat
spam-use-spamoracle)
"Whether the spam hooks should be installed, default to t if one of
the spam-use-* variables is set." [...])
I.e. `spam-install-hooks' is always t when you load `spam.el'? If you
use the `spam-initialize' function, why do you need the variable
`spam-install-hooks' at all?
If it's not used anymore, you may issue a warning if it's bound while
loading `spam.el', i.e. if someone wants to use the obsoleted
interface.
> +;;;###autoload
> +(defun spam-initialize ()
> + (interactive)
> + (setq spam-install-hooks t)
> + (spam-install-hooks-function)
> + ;; TODO: How do we redo this every time spam-face is customized?
> + (push '((eq mark gnus-spam-mark) . spam-face)
> + gnus-summary-highlight))
Then, I'd add "(push ...) to `spam-install-hooks-function' and rename
it to `spam-initialize'.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/
next prev parent reply other threads:[~2003-10-09 19:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-07 18:44 Ted Zlatanov
2003-10-09 14:42 ` Ted Zlatanov
2003-10-09 16:24 ` Reiner Steib
2003-10-09 18:00 ` Ted Zlatanov
2003-10-09 19:37 ` Reíner Steib [this message]
2003-10-09 19:51 ` Ted Zlatanov
2003-10-10 16:05 ` 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=v9ekxmyzh5.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).