Thread View: news.software.readers
10 messages
10 total messages
Started by Ed Ravin
Tue, 22 Mar 1994 23:03
Re: six trn questions
Author: Ed Ravin
Date: Tue, 22 Mar 1994 23:03
Date: Tue, 22 Mar 1994 23:03
25 lines
1930 bytes
1930 bytes
In article <2mm3ta$78k@engnews2.eng.sun.com>, Doug Landauer <landauer@morocco.Eng.Sun.COM> wrote: > >Q2: I often want to go backwards through the articles and/or threads > that I've seen in this (or the previous) session -- is there a > command like '-' that keeps going backwards instead of just toggling? Use the arrow keys on the keyboard to navigate through the little ASCII tree representation in the upper right hand corner of the screen when reading the beginning of a message. You can climb up and down all the reply chains that way. >Q3: At article reading level, ^ goes to the "first unread article". > How do I go to the first *existing* article in the group? Go to article 1 by number -- since there probably is no article 1, trn skips to the first existing article. Same trick works for the latest article --- type some number higher than all the existing article numbers in that group. -- Ed Ravin elr@wp.prodigy.com Prodigy Services Company eravin@panix.com 445 Hamilton Avenue White Plains, NY 10601 +1 914 448 4737
Re: six trn answers
Author: Doug Landauer
Date: Wed, 23 Mar 1994 17:46
Date: Wed, 23 Mar 1994 17:46
56 lines
3557 bytes
3557 bytes
Cool! Thanks to David Barr, Wayne Davison, Steven King, Damien Neil,
Samuel Paik, Ed Ravin, Larry Virden, and I have some answers and a few
new macros ...
Q1: In the selector, the @ command toggles all visible selections.
How do I toggle *all* selections in this newsgroup?
A1: Wrong question (can't easily do that). To do what I want, I can
now use a macro like one of these:
^A^F %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:n):\:M^J/\^/\:Tj^JYn):)
^A^A %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:^):\:M^J/\^/\:Tj^JY^):)
^A^R %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:Z):\:M^J/\^/\:Tj^JYZ):)
Detailed explanation in a separate message, if anyone asks. For
use in heavy-traffic newsgroups where only a small %age of the
articles are likely to be of interest. (Getting to be more and
more newsgroups like that, lately!)
Usage: go through all the pages of threads in the newsgroup,
selecting only those threads you *ever* want to see again, then
use ^A^F, ^A^A, or ^A^R to KILL permanently, into this newsgroup's
KILLfile, all of the *un*selected articles; what it does afterwards
differs: ^A^A goes back to the selector, with a newly-shortened
list of threads; ^A^F goes on to the next group (for when you just
wanted to do the selection, and/or you already had some Marked
articles); and ^A^R ("Read") goes directly to reading the articles.
Q2: Is there a command like '-' that keeps going backwards instead of
just toggling?
A2: Sorta, but only within a given thread or newsgroup. I'm looking
for a more global backtrace through all articles I've seen in this
session; or even all the ones I've seen *today*. Not currently
supported.
Q3: At article reading level, ^ goes to the "first unread article".
How do I go to the first *existing* article in the group?
A3: 1 <cr>
Q4: Can the thread-killer lines in a KILL file be aged (like nn does)?
A4: They tell me this already happens. Subject-killer lines don't but
that behavior makes sense to me.
Q5: I have this "z" macro "go to the next group and enter the selector".
z %(%m=[aet]?q+:%(%m=p?jq+:%(%m=n?n+:z)))
Is there a simpler way to write this macro?
A5: No, but that'll work fine.
Q6: Is there an X interface?
A6: Not yet. Perhaps someone adept at "expect" might come up
with something.
> Thinks in advance ...
Thinks in retrospect :-)
--
Doug Landauer -- landauer@eng.sun.com _
Sun Microsystems, Inc. -- SMI/Sunsoft/SunPro/IPE La no ka 'oi.
Re: six trn answers
Author: Janne Himanka
Date: Wed, 06 Apr 1994 16:41
Date: Wed, 06 Apr 1994 16:41
40 lines
2607 bytes
2607 bytes
In article <2mpv8s$ad3@engnews2.eng.sun.com>,
Doug Landauer <landauer@morocco.Eng.Sun.COM> wrote:
>
> ^A^F %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:n):\:M^J/\^/\:Tj^JYn):)
> ^A^A %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:^):\:M^J/\^/\:Tj^JY^):)
> ^A^R %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:Z):\:M^J/\^/\:Tj^JYZ):)
>
> Usage: go through all the pages of threads in the newsgroup,
> selecting only those threads you *ever* want to see again, then
> use ^A^F, ^A^A, or ^A^R to KILL permanently, into this newsgroup's
> KILLfile, all of the *un*selected articles; what it does afterwards
> differs: ^A^A goes back to the selector, with a newly-shortened
> list of threads; ^A^F goes on to the next group (for when you just
> wanted to do the selection, and/or you already had some Marked
> articles); and ^A^R ("Read") goes directly to reading the articles.
These don't seem to work for me...I am a novice to trn and it's hard
for me to debug these macros. First, I assume those "^" marks are
actual carets? I would mainly like to use the ^A^R macro, and indeed
it seems to do what it should: it skips non-selected articles and goes
to reading the selected ones, and puts lines like these in the kill
file:
<Cnqwu7.F04@fc.hp.com> TJ
But there are two catches. 1. When I go back reading the group the
next time, the "killed" threads are there again. I mean, new articles
in the threads I killed are visible, though I understood that they
should be killed automatically. 2. Sometimes when I press ^A^R, trn
skips *all* articles and goes to the newsgroup selector, jumping two
groups ahead. The ^A^A macro doesn't seem to do anything at all.
I'm using strn 0.92 (based on trn 3.4.1), and my .trninit looks like
this:
-e -p -s -z5 -B -G -L -M -EREPLYTO=Janne.Himanka@oulu.fi
Any help appreciated.
--Janne
Re: six trn answers
Author: Damien P. Neil
Date: Wed, 06 Apr 1994 17:10
Date: Wed, 06 Apr 1994 17:10
18 lines
1843 bytes
1843 bytes
In article <1994Apr6.164131.1547@ousrvr.oulu.fi>, Janne Himanka <Janne.Himanka@oulu.fi> wrote: >In article <2mpv8s$ad3@engnews2.eng.sun.com>, >Doug Landauer <landauer@morocco.Eng.Sun.COM> wrote: >> >> ^A^F %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:n):\:M^J/\^/\:Tj^JYn):) >> ^A^A %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:^):\:M^J/\^/\:Tj^JY^):) >> ^A^R %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:Z):\:M^J/\^/\:Tj^JYZ):) >should be killed automatically. 2. Sometimes when I press ^A^R, trn >skips *all* articles and goes to the newsgroup selector, jumping two >groups ahead. The ^A^A macro doesn't seem to do anything at all. Aha! This sounds like a problem that I have had with strn version mumble and trn 3.4.1. As far as I can tell, sometimes the condition %Z=0 decides to evaluate to true, even if articles are selected. Why? I don't know... Has anybody else noticed similar behavior?
Re: six trn answers
Author: Wayne Davison
Date: Thu, 07 Apr 1994 23:05
Date: Thu, 07 Apr 1994 23:05
15 lines
1384 bytes
1384 bytes
According to Damien P. Neil <damien@b63519.student.cwru.edu>: > As far as I can tell, sometimes the condition %Z=0 decides > to evaluate to true, even if articles are selected. Why? Because this is a regex match of '.*0.*' against the string %Z, and it is true if %Z is 0, 10, 20, 5083, etc. What you want to test is that "%Z=^0", since %Z will only begin with a 0 if it == 0. Thus the macros should be changed to be: ^A^F %(%m=t?%(%Z=^0?/\^/\:Tj^J%(%M=^0?n:n):\:M^J/\^/\:Tj^JYn):) ^A^A %(%m=t?%(%Z=^0?/\^/\:Tj^J%(%M=^0?n:^):\:M^J/\^/\:Tj^JY^):) ^A^R %(%m=t?%(%Z=^0?/\^/\:Tj^J%(%M=^0?n:Z):\:M^J/\^/\:Tj^JYZ):) -- Wayne Davison davison@borland.com
Re: six trn answers
Author: Damien P. Neil
Date: Thu, 07 Apr 1994 23:06
Date: Thu, 07 Apr 1994 23:06
12 lines
1357 bytes
1357 bytes
In article <Cnww4v.6L0@borland.com>, Wayne Davison <davison@borland.com> wrote:
>
>Because this is a regex match of '.*0.*' against the string %Z, and it
>is true if %Z is 0, 10, 20, 5083, etc. What you want to test is that
>"%Z=^0", since %Z will only begin with a 0 if it == 0. Thus the macros
>should be changed to be:
Aha! Thank you for the tip -- I had not realized that %Z evaluates to
a string, rather than a number. Perhaps this could be made a bit clearer
in the man page. (Or perhaps it is clear, and I overlooked it. :-)
- Damien
Re: six trn answers
Author: Wayne Davison
Date: Thu, 07 Apr 1994 23:09
Date: Thu, 07 Apr 1994 23:09
11 lines
1212 bytes
1212 bytes
According to Janne Himanka <Janne.Himanka@oulu.fi>: > new articles in the threads I killed are visible, though I understood that > they should be killed automatically. Are the threads actually attached to the threads you killed? Or are they missing refrences and an appropriate subject to associate them together? If they are associated, try using the -a option as a stop-gap measure and mail me with specific details of what is going wrong. Thanks. -- Wayne Davison davison@borland.com
Re: six trn answers
Author: Doug Landauer
Date: Fri, 08 Apr 1994 23:49
Date: Fri, 08 Apr 1994 23:49
45 lines
3084 bytes
3084 bytes
>> As far as I can tell, sometimes the condition %Z=0 decides
>> to evaluate to true, even if articles are selected. Why?
>
>Because this is a regex match of '.*0.*' against the string %Z, and it
>is true if %Z is 0, 10, 20, 5083, etc. What you want to test is that
>"%Z=^0", since %Z will only begin with a 0 if it == 0. Thus the macros
>should be changed to be:
>
> ^A^F %(%m=t?%(%Z=^0?/\^/\:Tj^J%(%M=^0?n:n):\:M^J/\^/\:Tj^JYn):)
> ^A^A %(%m=t?%(%Z=^0?/\^/\:Tj^J%(%M=^0?n:^):\:M^J/\^/\:Tj^JY^):)
> ^A^R %(%m=t?%(%Z=^0?/\^/\:Tj^J%(%M=^0?n:Z):\:M^J/\^/\:Tj^JYZ):)
The one other change that I've made since I posted the originals is to
escape the '^' commands in the expansion of the ^A^A macro. It looks like
trn was taking ^) to mean some control character. '\^)' works better in
that case. And for safety I suppose I'd do the same with the new '^0'
patterns. So here's what I use these days...
^A^F %(%m=t?%(%Z=\^0?/\^/\:Tj^J%(%M=\^0?n:n):\:M^J/\^/\:Tj^JYn):)
^A^A %(%m=t?%(%Z=\^0?/\^/\:Tj^J%(%M=\^0?n:\^):\:M^J/\^/\:Tj^JY\^):)
^A^R %(%m=t?%(%Z=\^0?/\^/\:Tj^J%(%M=\^0?n:Z):\:M^J/\^/\:Tj^JYZ):)
And, yes, in answer to someone's question, the '^' characters
in the above macros are *all* circumflexes (up-arrows (hats
(accents graves))).
Now, I forget whether I posted my "z" macro, but:
# I just want "z" to say "go to next group and + it". So the following
# tring translates z ...
# ... to q+ at article/end/selector level
# ... to jq+ at pager ("MORE?") level
# and to n+ at newsgroup selection level
z %(%m=[aet]?q+:%(%m=p?jq+:%(%m=n?n+:z)))
Unfortunately, this one cannot tell whether you've preserved ('M')
an article in the group you're leaving. I think that this is not
a problem in trn, but strn will then throw you back into the same
group again instead of moving on. I haven't yet figured out a fix
for this one.
Anyway, thanks to Wayne for fingering the bad "%Z=0" tests.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Doug.Landauer@sun.com "Sukkiri ga ii."
Re: six trn answers
Author: Bengt Larsson
Date: Sun, 10 Apr 1994 06:00
Date: Sun, 10 Apr 1994 06:00
22 lines
1860 bytes
1860 bytes
damien@b63519.student.cwru.edu (Damien P. Neil) wrote: >In article <1994Apr6.164131.1547@ousrvr.oulu.fi>, >Janne Himanka <Janne.Himanka@oulu.fi> wrote: >>In article <2mpv8s$ad3@engnews2.eng.sun.com>, >>Doug Landauer <landauer@morocco.Eng.Sun.COM> wrote: >>> >>> ^A^F %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:n):\:M^J/\^/\:Tj^JYn):) >>> ^A^A %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:^):\:M^J/\^/\:Tj^JY^):) >>> ^A^R %(%m=t?%(%Z=0?/\^/\:Tj^J%(%M=0?n:Z):\:M^J/\^/\:Tj^JYZ):) > >>should be killed automatically. 2. Sometimes when I press ^A^R, trn >>skips *all* articles and goes to the newsgroup selector, jumping two >>groups ahead. The ^A^A macro doesn't seem to do anything at all. > >Aha! This sounds like a problem that I have had with strn version mumble >and trn 3.4.1. As far as I can tell, sometimes the condition %Z=0 decides >to evaluate to true, even if articles are selected. Why? I don't know... Use %Z=^0$ instead. It's a regular expression and otherwise it will match anything with a zero in it. 10, 20 etc... Bengt L
Re: six trn answers
Author: David Blumenthal
Date: Tue, 12 Apr 1994 20:47
Date: Tue, 12 Apr 1994 20:47
13 lines
1276 bytes
1276 bytes
---------- >According to Janne Himanka <Janne.Himanka@oulu.fi>: >> new articles in the threads I killed are visible, though I understood that >> they should be killed automatically. > >Are the threads actually attached to the threads you killed? Or are they >missing refrences and an appropriate subject to associate them together? >If they are associated, try using the -a option as a stop-gap measure and >mail me with specific details of what is going wrong. Thanks. >-- >Wayne Davison >davison@borland.com >
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