Article View: news.software.readers
Article #59946Re: [slrn/ s-lang] multiple post-hooks addind custom-headers
From: Dawn Owens-Nicholson
Date: Sat, 01 Apr 2000 00:00
Date: Sat, 01 Apr 2000 00:00
21 lines
1722 bytes
1722 bytes
Rejo Zenger wrote: > Is it correct that i cannot have multiple followup-hooks that add custom > header lines in different files? No, you can have as many followup hooks as you want in as many files as you want, but only one of them will do anything. If you load them all, as you discovered, only the last one loaded will work because each one redefines the hook loaded from the one before. Hooks are S-Lang functions, just like any other S-Lang function, with two small exceptions: hooks are global (not all the other functions you'll deal with are global) and hooks are commonly executed by slrn, not by another S-Lang function. You need to make a single followup hook that runs the code you want it to either loading the code from another file or executing already loaded code. If you post more details about what you're trying to do, maybe we can help you better.
Technical Details
Message-ID:
<slrn8eciau.bg3.bluemoon@ux6.cso.uiuc.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<rejo.954595435m@sisterray.xs4all.nl>Show Full Headers
Complete Article Headers
Message-ID: <slrn8eciau.bg3.bluemoon@ux6.cso.uiuc.edu> Subject: Re: [slrn/ s-lang] multiple post-hooks addind custom-headers Date: Sat, 01 Apr 2000 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <rejo.954595435m@sisterray.xs4all.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 605355190 X-Complaints-To: abuse@uiuc.edu X-Trace: vixen.cso.uiuc.edu 954616143 128.174.5.9 (Sat, 01 Apr 2000 13:09:03 CST) Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.6.2 (HP-UX) NNTP-Posting-Date: Sat, 01 Apr 2000 13:09:03 CST Newsgroups: news.software.readers