Thread View: news.software.readers
2 messages
2 total messages
Started by Doug Evans
Tue, 21 Jul 1992 18:44
'K' operation not working right in tin 1.1 PL4
Author: Doug Evans
Date: Tue, 21 Jul 1992 18:44
Date: Tue, 21 Jul 1992 18:44
103 lines
3202 bytes
3202 bytes
The 'K' key seems to be broken when reading a group. It's supposed to mark
all messages of the current thread as read and move the cursor to the next
unread thread. The behaviour has changed to just move the cursor down one
thread.
I hope it's not because the definition has changed. If it has, how does
one move the cursor to the next unread thread (not next unread article!) ?
Here's a semi-hokey patch.
*** group.c0 Thu Jul 16 16:44:21 1992
--- group.c Tue Jul 21 12:33:26 1992
***************
*** 32,37 ****
--- 32,38 ----
static int bld_sline();
static int draw_sline();
+ static int next_unread_thread();
#ifndef ART_ADJUST /* what we do here is bizarre */
#define ART_ADJUST(n) (show_only_unread \
***************
*** 79,94 ****
index_group (group, group_path); /* update index file */
if (space_mode) {
! for (i = 0; i < top_base; i++) {
! if (new_responses (i)) {
! break;
! }
! }
! if (i < top_base) {
! index_point = i;
! } else {
index_point = top_base - 1;
- }
} else {
index_point = top_base - 1;
}
--- 80,88 ----
index_group (group, group_path); /* update index file */
if (space_mode) {
! index_point = next_unread_thread(0);
! if (index_point < 0)
index_point = top_base - 1;
} else {
index_point = top_base - 1;
}
***************
*** 488,495 ****
}
bld_sline(index_point);
draw_sline(index_point, FALSE);
! if (index_point + 1 < top_base)
! goto group_down;
draw_subject_arrow();
info_message(txt_end_of_arts);
break;
--- 482,495 ----
}
bld_sline(index_point);
draw_sline(index_point, FALSE);
! if (index_point + 1 < top_base) {
! i = next_unread_thread(index_point);
! if (i >= 0) { /* KLUDGE! */
! erase_subject_arrow();
! index_point = i - 1;
! goto group_down;
! }
! }
draw_subject_arrow();
info_message(txt_end_of_arts);
break;
***************
*** 1339,1342 ****
--- 1339,1360 ----
#endif /* INDEX_DAEMON */
return(0);
+ }
+
+ /*
+ * Return index of next thread with unread articles.
+ */
+
+ static int next_unread_thread (start)
+ int start;
+ {
+ int i;
+
+ for (i = start; i < top_base; i++) {
+ if (new_responses (i))
+ break;
+ }
+ if (i < top_base)
+ return(i);
+ return(-1);
}
--
Doug Evans | "You're just supposed to sit here?"
dje@sspiff.ampr.ab.ca | - Worf in a mud bath.
Re: 'K' operation not working right in tin 1.1 PL4
Author: Iain Lea
Date: Wed, 22 Jul 1992 15:08
Date: Wed, 22 Jul 1992 15:08
26 lines
1664 bytes
1664 bytes
dje@sspiff.ampr.ab.ca (Doug Evans) writes: : The 'K' key seems to be broken when reading a group. It's supposed to mark : all messages of the current thread as read and move the cursor to the next : unread thread. The behaviour has changed to just move the cursor down one : thread. : : I hope it's not because the definition has changed. If it has, how does : one move the cursor to the next unread thread (not next unread article!) ? : : Here's a semi-hokey patch. : : [patch deleted...] Interesting. You must have missed the unoffical patch I posted to this group: Subject: PATCH: Tin v1.1 PL4 newsreader (K command) Message-ID: <1992Jul8.142834.29902@anl433.uucp> Date: Wed, 8 Jul 1992 14:28:34 GMT Iain -- NAME Iain Lea EMAIL iain%anl433.uucp@Germany.EU.net SNAIL Siemens AG, ANL A433SZ, Gruendlacher Str. 248, 8510 Fuerth, Germany. PHONE +49-911-3089-407 (work) +49-911-331963 (home) +49-911-3089-290 (FAX)
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