🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #19213

Re: minor irritations with slrn

#19213
From: da... John E. Davis
Date: Thu, 15 Feb 1996 00:00
84 lines
3480 bytes
On 15 Feb 1996 01:04:30 GMT, Michael Stillwell <mi...@yoyo.cc.monash.edu.au>
wrote:
 : - could '!' be made to jump to the next unread high score?  Quite
 :   frequently I use '!' to jump to the next high score, then decide
 :   that I want to read the post that elicited the reply.  So I do a
 :   M-p to get the parent, and for some reason slrn performs a sort
 :   with the effect that these two articles are moved up the newsgroup
 :   list, beyond articles I've already read.  So therefore the next
 :   time I push '!' to get the next high score it jumps to an article
 :   I've already read.
 
It depends on your sorting mode.  If you turn on sorting threads by
alphabetical order, the change in position should not be too great.
I use:

    set sorting_method 3
    
 : - can M-u be made to mark a thread undeleted, analogous to M-d.
 :   Sometimes when I find an interesting post do a M-1 M-p to get the
 :   whole thread, but then I always try and use 'n' to get to the next
 :   article, which gets the next unread article.  This is actually
 
    The easiest way to achieve this is to do:
    
        ESC t u
	
This will collapse the thread and undelete it.

I realize that my suggestions are probably not what you are looking for.
However, in 0.8.7, you will be able to define your own functions and bind
them, e.g.,

   define my_undelete_thread ()
   {
      set_mark ();
      collapse_thread ();
      undelete ();
      goto_mark ();
   }
   
   setkey ("article", "my_undelete_thread", "u");

Part of the problem with slrn is that almost everyone using it is familiar
with another newsreader and that newsreader has some feature that slrn does
not have.  This is fine except that sometimes these features conflict with
one another.  For this reason I intend to embed the slang interpreter.  Then
you will be able to solve your first problem via a custom function, e.g,

    define my_goto_high_score ()
    {
        loop (2)
	  {
            forever
	     {
	      if (0 == goto_next_high_score ())
	        break;
	      if (header_unread ())
	        return;
	     }
	    % Not found, goto top and try again
	    goto_top ();
	  }
        error ("No next high score.");
     }

   setkey ("article", "my_goto_high_score", "!");

You will put such ``macros'' in some file, e.g., "~/lib/slrn/macros".  Then in
your .slrnrc file you would have a line:

    evalfile "~/lib/slrn/macros.sl"

Note also that the names of the intrinsic functions such as `goto_top' will
probably not be the same when all of this becomes a reality.  Rather, the
names will most likely resemble the names that the jed editor uses for its
intrinsics.  A good example of this is already provided with slrn: it is
slrn/score.sl which is a mode for editing slrn score files.

--John   
   
     

Technical Details
Message-ID: <slrn4i5e6i.cns.davis@wiwaxia.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
References: <slrn44i51kt.i97.mist@yoyo.cc.monash.edu.au>

Show Full Headers
Complete Article Headers
Message-ID: <slrn4i5e6i.cns.davis@wiwaxia.mit.edu>
Subject: Re: minor irritations with slrn
Date: Thu, 15 Feb 1996 00:00:00 +0000
From: da...@space.mit.edu (John E. Davis)
References: <slrn44i51kt.i97.mist@yoyo.cc.monash.edu.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 139433194
Organization: Center for Space Research
Reply-to: da...@space.mit.edu
Newsgroups: news.software.readers,alt.lang.s-lang