🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #56582

Re: slrn 's' command, slight misfeature?

#56582
From: tst... Thomas Schultz
Date: Sat, 08 Jan 2000 00:00
46 lines
2743 bytes
On 08 January 2000, Dawn Owens-Nicholson <blue...@ux6.cso.uiuc.edu> wrote:
> Thomas Schultz wrote:
>> In particular, I do not like the way the re-sorting of the articles
>> is done - finding out the sorting_method, ungetkey()ing it and
>> calling "toggle_sort" does work, but seems somewhat awkward.
> How about storing the sorting_method and resetting it with
> set_integer_variable("sorting_method", ...)?

This does not cause slrn to re-sort the articles, which is the effect
I want to achieve.

>>    while(header_up(1));
> call("header_bob") will scale better on large groups (also virtual
> groups might come which means still larger groups).

Okay, I changed this everywhere I used it. I guess loops without
"body" (correct term?) are bad style anyway...

>>    if ((mode == 'b') or (mode == 'B'))
> A few alternatives:
>   * orelse (which is slightly faster).
>   * covert mode to lower (or upper case) then do one compare against
>     that case.
>   * a little bit twiddling (if I remember my ASCII chart, I think lower
>     and upper character values differ by 32 (base 10)?).

I chose the second alternative. Would the third alternative really be
more than a less readable form of it?

>>    uncollapse_threads ();
>> [...]
>>    collapse_threads();
> I guess I should release a macro set to record and reset the collapse
> status of the display.  Call it a peeve, but I prefer macros that
> don't alter the layout of the display unless they absolutely have to.

I agree and in other macros, I spend some effort to achieve this
myself. However in this case, preserving the collapse status of the
display would be useless since slrn collapses all threads anyway when
re-sorting the articles. Actually, you could delete the
"collapse_threads();" statement without changing the functionality of
the macro. I just did that.
-- 
Thomas Schultz <tst...@gmx.de>
Technical Details
Message-ID: <slrn87f85o.4ms.tststs@starflower.tststs.ddns.org>
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: <slrn876gun.tul.cgreen@shell.x-1.net> <slrn87aebn.1un.tststs@starflower.tststs.ddns.org> <slrn87d8vd.1lc.bluemoon@ux6.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn87f85o.4ms.tststs@starflower.tststs.ddns.org>
Subject: Re: slrn 's' command, slight misfeature?
Date: Sat, 08 Jan 2000 00:00:00 +0000
From: tst...@gmx.de (Thomas Schultz)
References: <slrn876gun.tul.cgreen@shell.x-1.net> <slrn87aebn.1un.tststs@starflower.tststs.ddns.org> <slrn87d8vd.1lc.bluemoon@ux6.cso.uiuc.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
X-Deja-AN: 570115597
X-Server-Date: 8 Jan 2000 21:15:01 GMT
X-Complaints-To: ab...@cityweb.de
Organization: Cityweb News Service
User-Agent: slrn/0.9.6.2+ (Linux)
NNTP-Posting-Date: 8 Jan 2000 21:19:37 GMT
Newsgroups: news.software.readers,alt.lang.s-lang