Thread View: news.software.readers
9 messages
9 total messages
Started by l... Lloyd Zusman
Thu, 20 Aug 1998 00:00
[slrn] Making already-read articles completely disappear.
Author: l... Lloyd Zusman
Date: Thu, 20 Aug 1998 00:00
Date: Thu, 20 Aug 1998 00:00
13 lines
1018 bytes
1018 bytes
Is there a way in Slrn (version 0.9.5.2) to make already-read articles disappear from view in the summary buffer without exiting the newsgroup and re-entering it? I'm looking for something that I can invoke from within a macro which would cause all articles marked with 'D' to disappear from view. Thanks in advance. -- Lloyd Zusman 01234567 <-- The world famous Indent-o-Meter. l...@asfast.com ^ Indent or be indented.
Re: [slrn] Making already-read articles completely disappear.
Author: blue... Dawn Owens-Nicholson
Date: Thu, 20 Aug 1998 00:00
Date: Thu, 20 Aug 1998 00:00
11 lines
1064 bytes
1064 bytes
Lloyd Zusman <l...@asfast.com> wrote:
> Is there a way in Slrn (version 0.9.5.2) to make already-read articles
> disappear from view in the summary buffer without exiting the
> newsgroup and re-entering it?
Yes, call("art_xpunge") (typically bound to `x', I think) should work.
There is a small bug, if you need the thread display to remain the same as
it was before art_xpunge; all uncollapsed threads are collapsed.
[slrn] Making already-read crosspostings completely un-read.
Author: m.r... Martin Ramsch
Date: Sun, 25 Oct 1998 00:00
Date: Sun, 25 Oct 1998 00:00
22 lines
1471 bytes
1471 bytes
Hi all, in comparison to Lloyd Zusman's problem I just want the opposite and don't know how to do it in slrn: If I've read an article which is crossposted into several newsgroups, it is globally marked as alread-read, that is in all of these newsgroups. (That's good and normally desirable behaviour.) Now, if I do an 'u' to make such an article un-read again, it is only marked unread in this single newsgroup, which I'm currently reading. Is there a way to mark an article unread in all of it's newsgroups at once? (Besides visting all of these groups and do it step by step ...) Regards, Martin -- Martin Ramsch <m.r...@computer.org> <URL: http://home.pages.de/~ramsch/ > PGP KeyID=0xE8EF4F75 FiPr=52 44 5E F3 B0 B1 38 26 E4 EC 80 58 7B 31 3A D7
Re: [slrn] Making already-read crosspostings completely un-read.
Author: Lloyd Zusman
Date: Mon, 26 Oct 1998 00:00
Date: Mon, 26 Oct 1998 00:00
20 lines
1862 bytes
1862 bytes
m.r...@computer.org (Martin Ramsch) writes: > On 26 Oct 1998 00:39:00 -500, Lloyd Zusman <l...@asfast.com> wrote: > >> in comparison to Lloyd Zusman's problem I just want the opposite > >> and don't know how to do it in slrn: > > > >Just out of curiosity, which problem of mine are you referring to? > > You're right, I'm referring to quote an ancient posting of yours: :-) > | Subject: [slrn] Making already-read articles completely disappear. > | Date: 20 Aug 1998 02:12:49 GMT > | Message-ID: <slrn6tn1...@sunspot.tiac.net> OK. Now I remember! That *is* ancient ... two whole months! :):) -- Lloyd Zusman l...@asfast.com
Re: [slrn] Making already-read crosspostings completely un-read.
Author: blue... Dawn Owens-Nicholson
Date: Mon, 26 Oct 1998 00:00
Date: Mon, 26 Oct 1998 00:00
115 lines
4598 bytes
4598 bytes
Martin Ramsch wrote:
> Now, if I do an 'u' to make such an article un-read again, it is only
> marked unread in this single newsgroup, which I'm currently reading.
I haven't verified this to be true in the latest slrn, but such behavior
sounds like a bug to me. In my opinion, either an article is read or
unread; until it's read in one group, it should remain unread in all
crossposted groups.
> Is there a way to mark an article unread in all of it's newsgroups at
> once? (Besides visting all of these groups and do it step by step ...)
Here's one way to do it with slrn hooks: If your server supports Xref:, you
could make a macro to run when you leave a newsgroup with
article_mode_quit_hook(). This macro would go over each unread crossposted
article in the header list and store the {newsgroup/article number} pair in
a global linked list. A second macro, an article_mode_hook() macro, would
scan this linked list on group entry and add the appropriate articles to the
header list then mark them unread. The main problem is keeping the linked
list short--there should be some way to remove read articles from the linked
list. Given I think this is a bug, I'd consider this a workaround.
The code below might come in handy. Hope this helps!
% Author: J.B. Nicholson-Owens
!if (is_defined ("unmark_crossposts"))
variable unmark_crossposts = NULL;
define unmark_crossposts_article_mode_quit_hook ()
{
variable sorting_method = get_variable_value ("sorting_method");
set_integer_variable ("sorting_method", 0);
call ("header_bob");
do
{
!if (get_header_flags () & HEADER_READ) continue;
variable
xref = extract_article_header ("Xref"),
element = "",
index = 0,
new = NULL,
position = 0,
length = 0;
!if (strlen (xref)) continue;
if (string_match (xref, "^\([^:] ?\)\(.*\)", 1))
{
(position, ) = string_match_nth (2);
xref = substr (xref, position + 1, -1);
}
while (element = extract_element (xref, index, ' '),
element != NULL)
{
% parse the element into newsgroup:article_number
!if (string_match (element, "\([^:]*\):\(.*\)", 1)) continue;
new = struct { newsgroup, article_number, next };
(position, length) = string_match_nth (1);
new.newsgroup = substr (element, position + 1, length);
(position, length) = string_match_nth (2);
new.article_number = substr (element, position + 1, length);
if (unmark_crossposts == NULL)
{
unmark_crossposts = new;
unmark_crossposts.next = NULL;
}
else new.next = unmark_crossposts;
}
}
while (header_down (1));
set_integer_variable ("sorting_method", sorting_method);
}
define unmark_crossposts_article_mode_hook ()
{
if (unread_crossposts == NULL) return (); % nothing in the list
variable
newsgroup = current_newsgroup (),
lp = unread_crossposts, % a list pointer
prev = NULL, % so we can remove a node
articles_added = 0; % number of articles added
while (lp != NULL)
{
if (lp.newsgroup == newsgroup)
{
set_input_string (lp.article_number);
call ("goto_article"); % move cursor to article
call ("undelete"); % make article unread
if (lp == unread_crossposts) % delete the node
unread_crossposts = unread_crossposts.next;
else prev.next = lp.next;
articles_added++;
}
prev = lp;
lp = lp.next;
}
% might need to resort the header list, in case goto_article added
% the new articles in an unsorted order.
if (article_added)
set_integer_variable (get_variable_value ("sorting_method"));
}
Re: [slrn] Making already-read crosspostings completely un-read.
Author: m.r... Martin Ramsch
Date: Mon, 26 Oct 1998 00:00
Date: Mon, 26 Oct 1998 00:00
26 lines
1683 bytes
1683 bytes
On 26 Oct 1998 01:25:39 GMT, Dawn Owens-Nicholson <blue...@ux6.cso.uiuc.edu> wrote: > Martin Ramsch wrote: > > Now, if I do an 'u' to make such an article un-read again, it is only > > marked unread in this single newsgroup, which I'm currently reading. > > I haven't verified this to be true in the latest slrn, but such behavior > sounds like a bug to me. In my opinion, either an article is read or > unread; until it's read in one group, it should remain unread in all > crossposted groups. Seconded. :) I'm still using slrn 0.9.4.3, so I'm now going to install the most current version and see, if it still behaves as described above. Thanks a lot for your help and slang code!!! Regards, Martin -- Martin Ramsch <m.r...@computer.org> <URL: http://home.pages.de/~ramsch/ > PGP KeyID=0xE8EF4F75 FiPr=52 44 5E F3 B0 B1 38 26 E4 EC 80 58 7B 31 3A D7
Re: [slrn] Making already-read crosspostings completely un-read.
Author: m.r... Martin Ramsch
Date: Mon, 26 Oct 1998 00:00
Date: Mon, 26 Oct 1998 00:00
18 lines
1430 bytes
1430 bytes
On 26 Oct 1998 00:39:00 -500, Lloyd Zusman <l...@asfast.com> wrote: >> in comparison to Lloyd Zusman's problem I just want the opposite >> and don't know how to do it in slrn: > >Just out of curiosity, which problem of mine are you referring to? You're right, I'm referring to quote an ancient posting of yours: :-) | Subject: [slrn] Making already-read articles completely disappear. | Date: 20 Aug 1998 02:12:49 GMT | Message-ID: <slrn6tn1...@sunspot.tiac.net> Ciao, Martin -- Martin Ramsch <m.r...@computer.org> <URL: http://home.pages.de/~ramsch/ > PGP KeyID=0xE8EF4F75 FiPr=52 44 5E F3 B0 B1 38 26 E4 EC 80 58 7B 31 3A D7
Re: [slrn] Making already-read crosspostings completely un-read.
Author: Lloyd Zusman
Date: Mon, 26 Oct 1998 00:00
Date: Mon, 26 Oct 1998 00:00
22 lines
1767 bytes
1767 bytes
m.r...@computer.org (Martin Ramsch) writes: > Hi all, > > in comparison to Lloyd Zusman's problem I just want the opposite > and don't know how to do it in slrn: Just out of curiosity, which problem of mine are you referring to? I haven't posted any questions to news.software.readers or alt.lang.s-lang in quite a while, and I don't recall posting any questions related to your topic. Are you sure you don't have me mixed up with a different poster ... perhaps due to incorrect quote attributions? Or maybe what you're referring to is an ancient post of mine ... ??? > [ ... ] -- Lloyd Zusman l...@asfast.com
Re: [slrn] Making already-read crosspostings completely un-read.
Author: he... Heikki Kantola
Date: Mon, 26 Oct 1998 00:00
Date: Mon, 26 Oct 1998 00:00
22 lines
1786 bytes
1786 bytes
Dawn Owens-Nicholson <blue...@ux6.cso.uiuc.edu> informed news.software.readers with the following: >Martin Ramsch wrote: >> Now, if I do an 'u' to make such an article un-read again, it is only >> marked unread in this single newsgroup, which I'm currently reading. > >I haven't verified this to be true in the latest slrn, but such behavior >sounds like a bug to me. In my opinion, either an article is read or >unread; until it's read in one group, it should remain unread in all >crossposted groups. It's still present in 0.9.5.3 and yes, I find it rather annoying and long-standing bug, which should be fixed (and I don't mean S-Lang hacks :)) as soon as possible. -- 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads