Article View: news.software.readers
Article #55704Re: slrn crossposting
From: Thomas Schultz
Date: Tue, 21 Dec 1999 00:00
Date: Tue, 21 Dec 1999 00:00
66 lines
4002 bytes
4002 bytes
On 20 December 1999, Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu> wrote:
> I will look into that more closely a little later--however two things
> frame the discussion in broader terms: why are people producing
> patches to make specific functions instead of new hooks?
To return from "broader terms" to this specific case: Because the
removal of an old subject (marked by "(was:...") is a basic function
of a newsreader. I believe it is even suggested by some RFC (most
probably son-of-RFC 1036, but I'm too tired to look it up right now).
The user should now have to get and load a macro to do this.
> A new hook would open up a whole new area of functionality whereas
> patches only expand slrn to offer a single feature (a feature which
> one may not want at all, let alone wanting it loaded all the time).
This should not be a problem in this case. Felix added a variable to
switch the feature off and I do not think that the memory "wasted" by
the one-liner
if ((was = strstr(subject, "(was:")) != NULL ) was[0] = '\0';
is really a problem for you.
> I'm not against patching in things that open up slrn to do more
> things with macros (like the things you did with patches) because
> macros offer a high degree of customizability.
I really like macros and I sometimes write them for people in
de.comm.software.newsreader who are missing more or less exotic
features in slrn they have seen elsewhere. However, I believe that
there are also things that should be done with patches, because they
are such basic features that everybody should have them or because the
interface one would need to do them with macros would be so specific
that it is much more efficient to do them directly in C.
> Consider the new built-in feature of parsing (what I've heard called)
> proletext (textual markup for the proletariat, I suppose) which lets
> you see *bold here* among other things. [...] None of this precludes
> me from continuing my version, but the point about whether this was a
> good thing to build into slrn remains.
I also would have liked this feature to be more customizable (e.g. by
letting the user define regular expressions which will then be
highlighted; there could have been an example in the sample slrn.rc
file which would have done exactly what the intrinsic function is
doing now).
> Requiring sed for such a small job is clearly unportable and
> overkill. But the speed issue is the other overplayed issue I've
> heard before--[...]
You are right -- speed is not the issue in most cases, especially on
modern machines.
> All that said, I want to make it clear I'm not against patching slrn
> to do other things. I benefit from such changes; I would like to see
> more people proposing or patching hooks or scalable extensions other
> people can use later for other things.
Basically, I agree: Some things are better done with macros, some
things are better done with patches and sometimes it is necessary to
write a patch if you want to be able to do something with a macro.
--
Kind regards,
Thomas Schultz
Technical Details
Message-ID:
<slrn85tsvi.nb5.tststs@starflower.tststs.ddns.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn85akbd.3vvs6jp.raf@raf.hawaii.rr.com> <slrn85d4d2.36v.fschueller@fschueller.cologne.de> <slrn85dm64.4bc.bluemoon@ux6.cso.uiuc.edu> <slrn85qp66.av4.tststs@starflower.tststs.ddns.org> <slrn85r1kr.37u.bluemoon@ux6.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn85tsvi.nb5.tststs@starflower.tststs.ddns.org> Subject: Re: slrn crossposting Date: Tue, 21 Dec 1999 00:00:00 +0000 From: tststs@gmx.de (Thomas Schultz) References: <slrn85akbd.3vvs6jp.raf@raf.hawaii.rr.com> <slrn85d4d2.36v.fschueller@fschueller.cologne.de> <slrn85dm64.4bc.bluemoon@ux6.cso.uiuc.edu> <slrn85qp66.av4.tststs@starflower.tststs.ddns.org> <slrn85r1kr.37u.bluemoon@ux6.cso.uiuc.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 563253449 X-Server-Date: 21 Dec 1999 03:28:47 GMT X-Trace: fu-berlin.de 945747585 97720 149.225.46.135 (16 [152]) Organization: Pinguin online User-Agent: slrn/0.9.6.0 (Linux) Newsgroups: news.software.readers