Re: register_hooks

Troy Piggins <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
* Christian Ebert <[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).

Yes, I see what I was doing wrong.
Thankyou - it seems so obvious now.  All working fine.

-- 
Troy Piggins
  ,-o   Ubuntu v6.06 (Dapper Drake): kernel 2.6.15-26, 
 o   )  postfix 2.2.10, procmail 3.22, mutt 1.5.12i,
  `-o   slrn 0.9.8.1pl1/rt (score_color patch), vim 7.0

-------------------------------------------------------------------------
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.