Re: register_hooks

Christian Ebert <[email protected]>
Newsgroups gmane.network.slrn.user
Organization Black Trash Productions <http://www.blacktrash.org/>
Message-ID <[email protected]>
* Troy Piggins on Tuesday, September 26, 2006 at 12:30:55 +1000:
> define register_display_filters () {
>   () = register_hook ("read_article_hook", "demime_pgp");
>   () = register_hook ("read_article_hook", "t_prot");
> }
> 
> define unregister_display_filters () {
>   () = unregister_hook ("read_article_hook", "demime_pgp");
>   () = unregister_hook ("read_article_hook", "t_prot");
> }
> 
> % filtering is enabled by default:
> () = register_hook("read_article_hook", "register_display_filters");

You're hooking your register function? Just:

| register_display_filters ();

makes more sense imho, and your bindings work too (at least here).

c

-- 
_B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.