Article View: news.software.readers
Article #48042Re: Slrn: marking article/thread read without moving to next unread?
From: blue... Dawn Owens-Nicholson
Date: Thu, 15 Apr 1999 00:00
Date: Thu, 15 Apr 1999 00:00
27 lines
1681 bytes
1681 bytes
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
}
> [...] 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.
Technical Details
Message-ID:
<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-mailReferences:
<slrn7h3o65.jcd.hezu@tuuri.ling.helsinki.fi>Show Full Headers
Complete Article Headers
Message-ID: <slrn7hcdkv.t69.bluemoon@ux6.cso.uiuc.edu> Subject: Re: Slrn: marking article/thread read without moving to next unread? Date: Thu, 15 Apr 1999 00:00:00 +0000 From: blue...@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <slrn7h3o65.jcd.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-mail X-Deja-AN: 466823043 Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.5.4 (UNIX) Newsgroups: news.software.readers,alt.lang.s-lang