🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by John E. Davis Thu, 27 Jun 1996 00:00
Re: slrn ?
#23446
Author: John E. Davis
Date: Thu, 27 Jun 1996 00:00
16 lines
1150 bytes
On 27 Jun 96 02:14:44 GMT, Andrew Brennan <brennan@crashprone.allegheny.edu>
wrote:
 :    Is there a way to display *all* messages in a group - including the
 :    ones that have already been read??  I don't want to mark them all as
[...]
 :    Have I missed something simple??

Press `ESC 1 SPACE' to enter the group.  See also the answer to question 5
in the slrn FAQ.
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis


Re: slrn ?
#23448
Author: Hung Chau
Date: Thu, 27 Jun 1996 00:00
34 lines
1849 bytes
On 27 Jun 1996 17:01:18 GMT, David Mears wrote:
> While this will work, I would like to add my voice to Andrew's to lobby
> for a tin-like command from within a news group to toggle previously
> read article headers on and off. 

This might be nice.  I had to do the "q5
" a couple of time.  Plus there
seems to be no easy way for me to hide those article that I have read and
toggle them back like tin.

> ...
> 
> On a related tangent ...
> 
> that tin users will be willing to try slrn).  At the group level, tin
> uses S and U to subscribe (or unsubscribe) to groups based on regular
> expressions.  While slrn does the same with ESC 1 s or ESC 1 u, I can't
> map the functionality to the S and U keys.

Are you sure?  This works for me.  I just tried it?  You do know that the
setkey is case sensitive right?

Here is the setkey command I have in my .slrnrc file.

setkey group	subscribe	"S"    %  subscribe to group (See unsubscribe)
setkey group	unsubscribe	"U"    %  unsubscribe

> 
> BTW, what, if anything, is the difference between using ESC 0, ESC 1,
> ESC 2, etc. for command prefix values?

Talk to any emacs and jed users they will tell you.


Re: slrn ?
#23456
Author: David Mears
Date: Thu, 27 Jun 1996 00:00
43 lines
2424 bytes
John E. Davis <davis@space.mit.edu> wrote:

> Andrew Brennan <brennan@crashprone.allegheny.edu> wrote:

>  :    Is there a way to display *all* messages in a group - including the
>  :    ones that have already been read??  I don't want to mark them all as
> [...]
>  :    Have I missed something simple??

> Press `ESC 1 SPACE' to enter the group.  See also the answer to question 5
> in the slrn FAQ.

While this will work, I would like to add my voice to Andrew's to lobby
for a tin-like command from within a news group to toggle previously
read article headers on and off.  I need this type of functionality so
often that it's really cumbersome to have to leave the group with one
keystroke, then enter it again with three.  Please give me a simple
command I can bind to a single key to toggle read articles on and off.
You already have an art_xpunge command to remove read-article headers;
why not turn this into a toggle that works both ways?

On a related tangent ...

A general problem with using ESC n as a prefix to modify the behavior
of certain commands is there's no way to map the resulting commands to
some other arbitrary character sequence.  Case-in-point:  I've worked on
creating an slrn.rc file with setkey mappings that more closely match
the tin command mapping (to make it easier, and therefore more likely,
that tin users will be willing to try slrn).  At the group level, tin
uses S and U to subscribe (or unsubscribe) to groups based on regular
expressions.  While slrn does the same with ESC 1 s or ESC 1 u, I can't
map the functionality to the S and U keys.

BTW, what, if anything, is the difference between using ESC 0, ESC 1,
ESC 2, etc. for command prefix values?

David B. Mears
Hewlett-Packard
Cupertino CA
mears@cup.hp.com


Re: slrn ?
#23458
Author: John E. Davis
Date: Fri, 28 Jun 1996 00:00
19 lines
1544 bytes
On 28 Jun 1996 15:10:45 GMT, David Mears <mears@hpindft.cup.hp.com>
wrote:
 : Perhaps I didn't explain myself well enough.  The subscribe command in
 : slrn will subscribe to the single group under the arrow.  If you prefix
 : the command (i.e. type ESC 1 s) then slrn prompts for a regular expression
 : which it uses to choose groups to subscribe to.  Because it uses a prefix,
 : I can't bind the functionality to other keystrokes.

This capability will be present in 0.8.9 in the form of macros or slang
functions.  For this reason, I have hesitated in adding lots of specialized
keybindings.

-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis


Re: slrn ?
#23484
Author: Hung Chau
Date: Fri, 28 Jun 1996 00:00
18 lines
1339 bytes
On 28 Jun 1996 15:10:45 GMT, David Mears wrote:
> Hung Chau <hchau@bardeen.ucdavis.edu> wrote:
> > David Mears wrote:
> > > uses S and U to subscribe (or unsubscribe) to groups based on regular
> > > expressions.  While slrn does the same with ESC 1 s or ESC 1 u, I can't
> > 
> > Are you sure?  This works for me.  I just tried it?  You do know that the
> 
> Perhaps I didn't explain myself well enough.  The subscribe command in
> slrn will subscribe to the single group under the arrow. 

Opps.  Sorry.  Didn't see the the word regular expression.  Open mouth,
insert foot.




Re: slrn ?
#23493
Author: David Mears
Date: Fri, 28 Jun 1996 00:00
35 lines
1964 bytes
Hung Chau <hchau@bardeen.ucdavis.edu> wrote:

> David Mears wrote:

> > On a related tangent ...
> > 
> > that tin users will be willing to try slrn).  At the group level, tin
> > uses S and U to subscribe (or unsubscribe) to groups based on regular
> > expressions.  While slrn does the same with ESC 1 s or ESC 1 u, I can't
> > map the functionality to the S and U keys.
> 
> Are you sure?  This works for me.  I just tried it?  You do know that the
> setkey is case sensitive right?
> 
> Here is the setkey command I have in my .slrnrc file.
> 
> setkey group	subscribe	"S"    %  subscribe to group (See unsubscribe)
> setkey group	unsubscribe	"U"    %  unsubscribe

Perhaps I didn't explain myself well enough.  The subscribe command in
slrn will subscribe to the single group under the arrow.  If you prefix
the command (i.e. type ESC 1 s) then slrn prompts for a regular expression
which it uses to choose groups to subscribe to.  Because it uses a prefix,
I can't bind the functionality to other keystrokes.

I'd like to bind the s key to the simple subscribe function, and the S
key to the RE subscribe functionality.  But I can't (that I'm aware of).

David B. Mears
Hewlett-Packard
Cupertino CA
mears@cup.hp.com


Re: slrn ?
#23496
Author: Olly Betts
Date: Fri, 28 Jun 1996 00:00
96 lines
3940 bytes
In article <slrn4t5ppq.e33.hchau@bardeen.ucdavis.edu>, Hung Chau wrote:
>On 27 Jun 1996 17:01:18 GMT, David Mears wrote:
>> While this will work, I would like to add my voice to Andrew's to lobby
>> for a tin-like command from within a news group to toggle previously
>> read article headers on and off. 
>
>This might be nice.  I had to do the "q5
" a couple of time.  Plus there
>seems to be no easy way for me to hide those article that I have read and
>toggle them back like tin.

You can "hide" read headers using 'x'.

Here's a patch which adds a new function (bound by default to Ctrl-A) to
pull in all articles from the server.  I wrote it a while ago, but it has a
problem: the articles pulled in aren't scored (actually the existing
commands which pull in parents/children have the same flaw), and I haven't
had a chance to sort this out.  Perhaps someone else will fix it now...

I don't recall what version this patch is from, but you should be able to
apply it to anything recent, as it's fairly self-contained.  (Looking more
closely, it won't work with slrn 0.8.8.3 (BETA) if John's released that
yet).

--- art.c.base	Fri May 24 15:31:36 1996
+++ art.c	Fri May 24 16:19:48 1996
@@ -4416,6 +4416,45 @@
    Slrn_Full_Screen_Update = 1;
 }
 
+/* add in articles with server article ids start-end inclusive */
+static void fetch_range ( int start, int end )
+{
+   char buf[NNTP_BUFFER_SIZE];
+   if (start<=end)
+     {
+	nntp_open_xover (start, end);
+	
+	while (NULL != nntp_read_xover(buf, sizeof(buf) - 10))
+	  {
+	     Slrn_Header_Type *h;
+	     h = process_xover_line (buf);
+	     if (h == NULL) continue;
+	     get_header_real_name (h);
+	     insert_header (h);
+	  }
+	nntp_close_xover ();
+     }
+}
+
+/* fetch all articles not currently fetched */
+static void fetch_all (void)
+{
+   Slrn_Header_Type *h;
+   int start,end;
+   
+   start = Slrn_Server_Min;
+   h = First_Header;
+   while (h != NULL)
+     {
+	end = h->number-1;
+	if (start<=end)	fetch_range( start, end );
+	start = h->number+1;
+	h = h->real_next;
+     }
+   fetch_range( start, Slrn_Server_Max );
+   sort_by_sorting_mode ();
+}
+
 static int prev_unread (void)
 {
    Slrn_Header_Type *h;
@@ -4986,6 +5025,7 @@
 {
    A_KEY("browse_url", browse_url),
    A_KEY("art_xpunge", art_xpunge),
+   A_KEY("fetch_all", fetch_all),
    A_KEY("wrap_article", wrap_article),
    A_KEY("goto_last_read", goto_last_read),
 #if SLRN_HAS_DECODE
@@ -5223,6 +5263,7 @@
    SLkm_define_key  ("u", (FVOID_STAR) undelete_header_cmd, Slrn_Article_Keymap);
    SLkm_define_key  ("U", (FVOID_STAR) browse_url, Slrn_Article_Keymap);
    SLkm_define_key  ("x", (FVOID_STAR) art_xpunge, Slrn_Article_Keymap);
+   SLkm_define_key  ("^A", (FVOID_STAR) fetch_all, Slrn_Article_Keymap);
    SLkm_define_key  ("t", (FVOID_STAR) toggle_headers, Slrn_Article_Keymap);
    SLkm_define_key  ("T", (FVOID_STAR) toggle_quotes, Slrn_Article_Keymap);
    SLkm_define_key  ("\033a", (FVOID_STAR) toggle_show_author, Slrn_Article_Keymap);

Olly
-- 
cool wet grass  cool wet grass  cool wet grass  cool wet grass  cool wet grass



Re: slrn ?
#23542
Author: John E. Davis
Date: Sat, 29 Jun 1996 00:00
37 lines
1955 bytes
On 27 Jun 1996 17:01:18 GMT, David Mears <mears@hpindft.cup.hp.com>
wrote:
 : BTW, what, if anything, is the difference between using ESC 0, ESC 1,
 : ESC 2, etc. for command prefix values?

It depends on the function the key sequence activates.  Many functions
simply require any prefix value. Others use specific values.  For example,
at group level:

    ESC 1 SPACE
    
will read all articles in the group, whereas

    ESC 2 SPACE
    
will simply turn off scoring.  Finally,

    ESC 3 SPACE
    
will enter the group by reading all articles and no scoring.

Both Emacs and JED editors make extensive use of prefix arguments and since
slrn was inspired from my previous experience with GNUS, it is no wonder
that slrn uses this mechanism.

Incidently, once the newsreader becomes user programmable via its extension
language, you will be able to write your own custom functions to hide the
prefix argument stuff and then bind your new functions to keys.  In fact,
that is now at the top of my list of things to add to slrn.  I hope to have
this functionality in 0.8.9.
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis


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