🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Markus Becker Wed, 19 Jan 2000 00:00
[slrn] "*" behaviour
#56903
Author: Markus Becker
Date: Wed, 19 Jan 2000 00:00
15 lines
940 bytes
Hi,

is the following a bug, or a feature?

When I mark an article with "*" to not delete it with a
catch-up, it still gets deleted, when I read it (enter).

I know that the help states "...so that it is unaffected
by catch-up commands", but I consider this inconsistent
behaviour. Is there an option to change this?

Markus


Re: [slrn] "*" behaviour
#56969
Author: Dawn Owens-Nicholson
Date: Thu, 20 Jan 2000 00:00
16 lines
1407 bytes
Markus Becker wrote:
> When I mark an article with "*" to not delete it with a
> catch-up, it still gets deleted, when I read it (enter).

I think it's a feature because I don't want to re-read articles I've already
read.

> I know that the help states "...so that it is unaffected
> by catch-up commands", but I consider this inconsistent
> behaviour. Is there an option to change this?

No, but you can make a macro to change how your enter or spacebar behaves.
I've made one for myself to change how * behaves (marking the article unread
if it's read then applying the *).

Re: [slrn] "*" behaviour
#57115
Author: Markus Becker
Date: Sun, 23 Jan 2000 00:00
18 lines
1184 bytes
Dawn Owens-Nicholson wrote:
>I think it's a feature because I don't want to re-read articles I've already
>read.

I think it's a bug, because sometimes I want to reread articles
I have already read.
;-)

>No, but you can make a macro to change how your enter or spacebar behaves.
>I've made one for myself to change how * behaves (marking the article unread
>if it's read then applying the *).

So I guess I have to dive onto macros. OK.

Markus


Re: [slrn] "*" behaviour
#57178
Author: Dawn Owens-Nicholson
Date: Mon, 24 Jan 2000 00:00
34 lines
1899 bytes
Markus Becker wrote:
> I think it's a bug, because sometimes I want to reread articles I have
> already read.

I imagine everyone does, however I was stating the norm for newsreading.

> So I guess I have to dive onto macros. OK.

You could try:

implements ("my");
static define toggle_header_tag ()
{
   if (is_group_mode ())
     error (_function_name () + " doesn\'t work in group mode!");

   if (andelse
        { get_prefix_arg () == -1 }
        { orelse
             { get_header_flags () & HEADER_READ }
             { is_thread_collapsed () }})
     {
        variable starting_point = extract_article_header ("Message-ID");
        call ("undelete");                       % mark thread or header unread
        () = locate_header_by_msgid (starting_point, 0);
     }

   Looptastic->toggle_header_tag ();
}

Of course, replace "Looptastic->toggle_header_tag ();" with
call("toggle_header_tag") if you don't use the Looptastic macros.

Re: [slrn] "*" behaviour
#57185
Author: Markus Becker
Date: Mon, 24 Jan 2000 00:00
29 lines
1841 bytes
Dawn Owens-Nicholson wrote:
>I imagine everyone does, however I was stating the norm for newsreading.

Oh, I don't quite know this norm by heart. But thanks for reassuring me
that I'm not "normal". (Don't misinterpret this, I don't know if the
real intention comes across the "culture gaps" that lie (sp?) between
german and (american) english native humor. This is not my native
tongue ;-)

>You could try:

Err, if I knew how. Up to now, there was no need to know how macros
function in slrn. So I never read the related parts of the
documentation. Sorry.

But I saved your macro plus comment to use it, when I know how. I'm sure,
I'll manage to find it out, since my overall programming knowlege seems
to be quite good. But don't interpret this last sentence as a reason not
to give me tips ;-)

>Of course, replace "Looptastic->toggle_header_tag ();" with
>call("toggle_header_tag") if you don't use the Looptastic macros.

I suppose I don't use it, since I never heard of it.

Markus


Re: [slrn] "*" behaviour
#57186
Author: Dawn Owens-Nicholson
Date: Mon, 24 Jan 2000 00:00
45 lines
2827 bytes
Markus Becker wrote:
> Err, if I knew how. Up to now, there was no need to know how macros
> function in slrn. So I never read the related parts of the
> documentation. Sorry.

I'm not sure if the docs cover all this, but here's a brief way to run that
(or virtually any) macro:

(1) Make a file in your homedir (or wherever you can keep S-Lang files)
    called "my_macros.sl".  The name doesn't *really* matter, but it's what
    I use and what I'll use for the rest of this documentation.

(2) Put that macro in this file.  Save and close the file.

(3) In your slrn.rc, append this line:

       interpret "my_macros.sl"
       setkey article my->toggle_header_tag "*"

    This, in case you didn't know, the first line loads the file into slrn.
    The second line binds the function (in the "my" namespace) to the
    asterisk key.  If you put the S-Lang file in some place slrn can't find,
    either adjust slrn's S-Lang path (see the sample slrn.rc for details) or
    put a fully qualified path before 'my_macros.sl' in the 'interpret'
    line.

(4) If you are running slrn, quit slrn.  Run slrn.

I said:
> Of course, replace "Looptastic->toggle_header_tag ();" with
> call("toggle_header_tag") if you don't use the Looptastic macros.

You replied:
> I suppose I don't use it, since I never heard of it.

I posted a few versions of it to Usenet a while ago.  Deja.com should have
the last version I posted, or I can e-mail you a copy if you want.  It's a
macro set that lets you make the cursor wrap (or "loop") around the group
and article header lists.  I use it all the time so I make my personal
macros use its functions as well.

Check out S-Lang's documentation and slrn's doc/README.macros and
doc/slrnfuns.txt for info on slrn's S-Lang API.

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