Download Quick and Easy Configuration HOWTO

Transcript
Capitolo 15. Slrn
color_save_colors_to_file ();
}
15.4.2. macro: "new-search.sl"
% -*- mode: slang; mode: fold -*% new-search.sl - a replacement for search.sl that comes with slrn
%
%
%
%
%
%
Copyright (C) 2000, 2001 Thomas Schultz <[email protected]>
set_preference() mechanism borrowed from J.B. Nicholson-Owens
This file may be redistributed and / or modified under the terms of the
GNU General Public License, version 2, as published by the Free Software
Foundation.
#iffalse % Documentation %{{{
Description:
This file is meant as a replacement for the file search.sl that comes with
slrn. It also searches through the articles in the current newsgroup, but
has nicer features: It leaves threads in their collapsed / uncollapsed
status, optionally starts the search at the beginning of the buffer or
wraps around the end of the article list.
Installation:
The interface consists of two functions: search_first() starts a new
search, search_next() finds subsequent matches of the same regexp. You can
bind them in your slrnrc like this:
setkey article NewSearch->search_first "$"
setkey article NewSearch->search_next "&"
Preferences:
You can use the set_preference() function to customize the behaviour of
the macro. To do this, put calls to this function in a file and load it
after this file is loaded. The following examples show the default values:
NewSearch->set_preference("start_at_bob", 0);
164