Article View: news.software.readers
Article #6438Re: tin 1.2 PL2 reading article number problem
From: Tom J Parry
Date: Tue, 09 Nov 1993 23:47
Date: Tue, 09 Nov 1993 23:47
132 lines
6191 bytes
6191 bytes
On Tue, 9 Nov 1993 23:04:19 GMT, Tom J Parry wrote:
> > Seriously, it would've been nice to be a configurable option.
> The r/R switch or f/F switch might be a useful patch (I like the way tin
> does it but many people may prefer the traditional behaviour of other
> products). Possibly a tinrc option. I will look at it now and maybe post a
> patch (and send it on to Iain).
OK, here it is. This will add a 'reversed_article_quoting' entry to your
.tinrc file. If it is set to ON the f and F will have their meaning
switched and so will r and R (ie lower case will _not_ quote, upper will).
This is a patch to Tin 1.2 PL2. Once you have installed it and compiled,
run tin and then exit tin again. This will add the new entry to your
.tin/tinrc. You can then edit that file and search for 'reversed' and
change OFF to ON if you want to switch semantics.
If you don't edit your tinrc you will never notice that anything has
changed.
context diff follows....
============
diff -c3 tin-1.22.orig/extern.h tin-1.22.quote/extern.h
*** tin-1.22.orig/extern.h Mon Sep 27 10:36:58 1993
--- tin-1.22.quote/extern.h Wed Nov 10 10:07:19 1993
***************
*** 662,667 ****
--- 662,668 ----
extern int real_umask;
extern int reread_active_file;
extern int reread_active_file_secs;
+ extern int reversed_article_quoting;
extern int save_news;
extern int save_to_mmdf_mailbox;
extern int show_author;
diff -c3 tin-1.22.orig/init.c tin-1.22.quote/init.c
*** tin-1.22.orig/init.c Mon Sep 27 10:37:04 1993
--- tin-1.22.quote/init.c Wed Nov 10 10:08:08 1993
***************
*** 142,147 ****
--- 142,148 ----
int print_header; /* print all of mail header or just Subject: & From lines */
int purge_index_files; /* stat all articles to see if they still exist */
int reread_active_file_secs; /* reread active file interval in seconds */
+ int reversed_article_quoting; /* switch semantics of f/F r/R */
int read_local_newsgroups_file; /* read newsgroups file locally or via NNTP */
int mail_news; /* mail all arts to specified user */
int save_news; /* save all arts to savedir structure */
***************
*** 293,298 ****
--- 294,300 ----
print_header = FALSE;
purge_index_files = FALSE;
reread_active_file_secs = REREAD_ACTIVE_FILE_SECS;
+ reversed_article_quoting = FALSE;
return_art_mark = RETURN_ART_MARK;
save_news = FALSE;
#ifdef HAVE_MMDF_MAILER
diff -c3 tin-1.22.orig/page.c tin-1.22.quote/page.c
*** tin-1.22.orig/page.c Mon Sep 27 10:37:17 1993
--- tin-1.22.quote/page.c Wed Nov 10 10:26:19 1993
***************
*** 414,420 ****
info_message (txt_cannot_post);
break;
}
! copy_text = (ch == 'f' ? TRUE : FALSE);
ret_code = post_response (group, respnum, copy_text);
redraw_page (respnum, group);
break;
--- 414,423 ----
info_message (txt_cannot_post);
break;
}
! if (reversed_article_quoting)
! copy_text = (ch == 'F' ? TRUE : FALSE);
! else
! copy_text = (ch == 'f' ? TRUE : FALSE);
ret_code = post_response (group, respnum, copy_text);
redraw_page (respnum, group);
break;
***************
*** 547,553 ****
case 'r': /* reply to author through mail */
case 'R':
! copy_text = (ch == 'r' ? TRUE : FALSE);
mail_to_author (group, respnum, copy_text);
redraw_page (respnum, group);
break;
--- 550,559 ----
case 'r': /* reply to author through mail */
case 'R':
! if (reversed_article_quoting)
! copy_text = (ch == 'R' ? TRUE : FALSE);
! else
! copy_text = (ch == 'r' ? TRUE : FALSE);
mail_to_author (group, respnum, copy_text);
redraw_page (respnum, group);
break;
diff -c3 tin-1.22.orig/rcfile.c tin-1.22.quote/rcfile.c
*** tin-1.22.orig/rcfile.c Mon Sep 27 10:37:22 1993
--- tin-1.22.quote/rcfile.c Wed Nov 10 10:18:10 1993
***************
*** 138,143 ****
--- 138,146 ----
if (match_number (buf, "reread_active_file_secs=", &reread_active_file_secs)) {
continue;
}
+ if (match_boolean (buf, "reversed_article_quoting=", &reversed_article_quoting)) {
+ continue;
+ }
if (match_boolean (buf, "show_last_line_prev_page=", &show_last_line_prev_page)) {
continue;
}
***************
*** 333,338 ****
--- 336,343 ----
fprintf (fp, "reread_active_file_secs=%d\n\n", reread_active_file_secs);
fprintf (fp, "# characters used in quoting to followups and replys. '_' replaced by ' '\n");
fprintf (fp, "quote_chars=%s\n\n", quote_space_to_dash (quote_chars));
+ fprintf (fp, "# Reverse semantics of f/F and r/R\n");
+ fprintf (fp, "reversed_article_quoting=%s\n\n", (reversed_article_quoting ? "ON" : "OFF"));
fprintf (fp, "# character used to show that an art was unread (default '+')\n");
fprintf (fp, "unread_art_mark=%c\n\n", unread_art_mark);
fprintf (fp, "# character used to show that an art was auto-selected (default '*')\n");
===========
--
Tom J Parry.
Your reality is a figment of my imagination.
Technical Details
Message-ID:
<1993Nov9.234736.5826@monu6.cc.monash.edu.au>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!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!munnari.oz.au!bruce.cs.monash.edu.au!harbinger.cc.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parryReferences:
<CFz93n.2tK@wpdis11.wpafb.af.mil> <2bd29j$n1m@rwb.urc.tue.nl> <1993Nov6.075633.6314@monu6.cc.monash.edu.au> <1993Nov6.135720.20694@ringer.cs.utsa.edu> <1993Nov9.114344.26584@monu6.cc.monash.edu.au> <2boadg$t8o@news.ysu.edu> <1993Nov9.230419.2773@monu6.cc.monash.edu.au>Show Full Headers
Complete Article Headers
Message-ID: <1993Nov9.234736.5826@monu6.cc.monash.edu.au> Subject: Re: tin 1.2 PL2 reading article number problem Date: Tue, 9 Nov 1993 23:47:36 GMT From: parry@yoyo.cc.monash.edu.au (Tom J Parry) References: <CFz93n.2tK@wpdis11.wpafb.af.mil> <2bd29j$n1m@rwb.urc.tue.nl> <1993Nov6.075633.6314@monu6.cc.monash.edu.au> <1993Nov6.135720.20694@ringer.cs.utsa.edu> <1993Nov9.114344.26584@monu6.cc.monash.edu.au> <2boadg$t8o@news.ysu.edu> <1993Nov9.230419.2773@monu6.cc.monash.edu.au> 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!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!munnari.oz.au!bruce.cs.monash.edu.au!harbinger.cc.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parry Newsgroups: news.software.readers Originator: parry@yoyo.cc.monash.edu.au Lines: 128 Sender: news@monu6.cc.monash.edu.au (Usenet system) Organization: Monash University, Melb., Australia.