Article View: news.software.readers
Article #139578Re: [announce] mutt vs slrn - a comparison
From: Thomas Schultz
Date: Fri, 19 Dec 2003 19:34
Date: Fri, 19 Dec 2003 19:34
115 lines
5897 bytes
5897 bytes
* Sven Guckes [2003-12-18 20:06] :
> so there is some kind of a command line.. but is this one for slang
> functions only?
Yep.
> does this allow ":source setupfile", too?
No. It allows you to evaluate slang-files, though, and in the long
term, it might be a nice idea to specify the config file in slang (the
editor jed does this) instead of using a separate syntax.
> is there (tab) completion of command names, option names, and values?
Not yet, although the source code should already have the
"infrastructure" to add this (i.e. tab completion of filenames is
implemented in a way that should make it easy to re-use the code).
> is there an intro for using this command line?
Not yet. But wait... (some time later) what do you think about this
new section of the reference manual:
<--->
2.1. A brief introduction to the built-in s-lang prompt
When trying various configuration settings, you may find it quite
inconvenient to constantly toggle between slrn and your editor and to
restart slrn each time you made a change. Maybe you also want to play
around with some settings without making (permanent) changes to your
config file. In these cases, making yourself familiar with the built-
in s-lang prompt of slrn can be worthwhile.
You get to the prompt by calling ``evaluate_cmd'' (by default bound to
`CTRL-X ESC') in either group or article mode. You will notice that
the bottom status line changes and displays S-Lang> - behind that
prompt, you can enter your commands. Basically, you can do anything
here that you could do in a macro, so if you want to explore the full
capabilities of this prompt, you'll have to read the documentation
that comes with slang and look at the file slrnfuns.txt that comes
with slrn.
However, you can also do some simple things without understanding much
about s-lang:
o To find out the current value of a config variable, use a command
like this one:
message(string(get_variable_value("use_metamail")))
After this, the current value of the variable will appear in the bot-
tom status line. By the way, the call to string() is only needed when
querying an integer variable, so you can omit it if you want when get-
ting the value of a string variable.
o If you want to set a config variable at runtime, you need to know
whether its type is integer or string (if in doubt, look it up in
this manual). To set a variable, use something like
set_integer_variable("use_metamail", 0) % for integer variables
set_string_variable("metamail_command", "metamutt") % for string variables
Note that changing a variable does not always have an immediate
effect: For example, changing ``sorting_method'' does not automati-
cally imply a re-sorting of the articles. By the way, you can call the
intrinsic function sort_by_sorting_method from the s-lang prompt
afterwards in this specific case.
o You can also load macros dynamically using a line like
() = evalfile("my-macro.sl")
Note that you need those funny leading brackets and the equals sign in
this case, because evalfile returns 1 on success. Using the given
notation, we simply ignore the returned value. If we didn't do any-
thing with it, it would be left on the stack and when this happens too
often, you'll get a stack overflow at some point. If you really want
to understand this, please read the file slang.txt that comes with the
s-lang documentation. Otherwise, simply use the notation given here.
<--->
[display_filter macro]
> this mail may be still on some archive - but i definietly don't have
> it at hand. can you send it to me again, please?
Will do.
> and what was the structure of this macro? does this allow to set an
> arbitrary shell command for use as a display_filter?
Yep.
[macro for searching in article bodies]
> but i fear the macro won't allow to *combine* the regex with other
> search patterns such as "date between date1 and date2" or "only from
> address a with subject s" - or does it? [...]
No - extending it to do this would be possible, though.
> sometimes i'd rather want to see the read messages *only* (ie no new
> ones). and i would often want to sort these by sender and with a
> limit on the subject, too.
I agree that a "limit" command would be nice to have; I just added
this to the wishlist.
--
Thomas Schultz <tststs@gmx.de> News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2003-08-25] Released slrn 0.9.8.0
| Home of the slrn newsreader | [2003-08-19] New slrn FAQ available
| http://slrn.sourceforge.net | [2003-07-31] First beta with offline reading
Technical Details
Message-ID:
<slrnbu6kmt.1cg.tststs@moonlight.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.20140922.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!newsfeed.vmunix.org!fu-berlin.de!uni-berlin.de!dialin-212-144-208-228.arcor-ip.NET!not-for-mailReferences:
<slrnbtv8su.e4o.usenet@pima.hostsharing.net> <slrnbu1mou.2j1.tststs@moonlight.tststs.ddns.org> <2003-12-18T19-33-21@guckes.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnbu6kmt.1cg.tststs@moonlight.tststs.ddns.org> Subject: Re: [announce] mutt vs slrn - a comparison Date: Fri, 19 Dec 2003 19:34:53 +0000 From: Thomas Schultz <tststs@gmx.de> References: <slrnbtv8su.e4o.usenet@pima.hostsharing.net> <slrnbu1mou.2j1.tststs@moonlight.tststs.ddns.org> <2003-12-18T19-33-21@guckes.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!newsfeed.vmunix.org!fu-berlin.de!uni-berlin.de!dialin-212-144-208-228.arcor-ip.NET!not-for-mail Newsgroups: news.software.readers Organization: Pinguin online. Lines: 115 NNTP-Posting-Host: dialin-212-144-208-228.arcor-ip.net (212.144.208.228) X-Trace: news.uni-berlin.de 1071862693 8522811 212.144.208.228 ([152]) User-Agent: slrn/0.9.8.0 (Linux)