Article View: news.software.readers
Article #48047Re: Slrn: marking article/thread read without moving to next unread?
From: he... Heikki Kantola
Date: Fri, 16 Apr 1999 00:00
Date: Fri, 16 Apr 1999 00:00
43 lines
2509 bytes
2509 bytes
Dawn Owens-Nicholson <blue...@ux6.cso.uiuc.edu> informed
news.software.readers with the following:
>Heikki Kantola wrote:
>> I've started to write a S-Lang macro, which would just mark article/
>> thread and not jump to next unread [...]
>
>In the spirit of TMTOWTDI, here's another (almost entirely self-documenting)
>way to do it:
>
>define mark_thread_read_stand_still ()
>{
> variable
> starting_article = extract_article_header ("Message-ID"),
> thread_was_collapsed = is_thread_collapsed ();
>
> call ("delete_thread");
> set_input_string (starting_article); % go back to where we started
> call ("locate_header_by_msgid"); % lhbm is slightly buggy
> if (thread_was_collapsed) collapse_thread (); % restore thread collapse
> else uncollapse_thread (); % to work around lhbm bug
>}
I would say that's uglier than what I resorted to use (see <URL:news:
slrn7h62...@tuuri.ling.helsinki.fi>) as locating by msg-id
sounds somewhat slow to me...
>> [...] but is there any easy way to mark whole threads read without
>> resorting to use internal "delete"-function?
>
>Why not use the intrinsic functions? They're usually faster, your code can
>be shorter and you don't have to reinvent wheels.
You're propably right and I've nothing against using intrisic functions,
although using the internal functions occasionally can also save few
lines of code.
--
Heikki "Hezu" Kantola, <Heikki...@IKI.FI>
Lähettämällä mainoksia tai muuta asiatonta sähköpostia yllä olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.
Technical Details
Message-ID:
<slrn7he001.23o.hezu@tuuri.ling.helsinki.fi>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mailReferences:
<slrn7h3o65.jcd.hezu@tuuri.ling.helsinki.fi> <slrn7hcdkv.t69.bluemoon@ux6.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn7he001.23o.hezu@tuuri.ling.helsinki.fi> Subject: Re: Slrn: marking article/thread read without moving to next unread? Date: Fri, 16 Apr 1999 00:00:00 +0000 From: he...@iki.fi (Heikki Kantola) References: <slrn7h3o65.jcd.hezu@tuuri.ling.helsinki.fi> <slrn7hcdkv.t69.bluemoon@ux6.cso.uiuc.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail X-Deja-AN: 467063739 Content-Transfer-Encoding: 8bit Mail-Copies-To: never Content-Type: text/plain; charset=iso-8859-1 Organization: Department of General Wizardry, Unseen University, Ankh-Morpork Mime-Version: 1.0 User-Agent: slrn/0.9.5.4 (UNIX) Newsgroups: news.software.readers,alt.lang.s-lang