🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #1899

'K' operation not working right in tin 1.1 PL4

#1899
From: Doug Evans
Date: Tue, 21 Jul 1992 18:44
103 lines
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.
Technical Details
Message-ID: <1992Jul21.184435.1993@sspiff.ampr.ab.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!gatech!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!sspiff!dje

Show Full Headers
Complete Article Headers
Message-ID: <1992Jul21.184435.1993@sspiff.ampr.ab.ca>
Subject: 'K' operation not working right in tin 1.1 PL4
Date: Tue, 21 Jul 1992 18:44:35 GMT
From: dje@sspiff.ampr.ab.ca (Doug Evans)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!gatech!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!sspiff!dje
Newsgroups: news.software.readers
Organization: Edmonton, Alberta
X-Newsreader: Tin 1.1 PL4
Lines: 103