Thread View: news.software.readers
3 messages
3 total messages
Started by Pascal A. Dupuis
Fri, 24 Apr 1998 00:00
SLRN : toggling sort mode AND header display in article mode ?
Author: Pascal A. Dupuis
Date: Fri, 24 Apr 1998 00:00
Date: Fri, 24 Apr 1998 00:00
18 lines
1088 bytes
1088 bytes
Hello, just start using the header_display_format with slrn 0.9.5.1. Question is: -in default sort mode, I wish to have display format 0 (with line count) -in unsorted mode, I wish to have format 1 (with ref number). Is it possible to embbed this change in display format when invoking the "\eS" key ? Thanks in adance Pascal A. Dupuis -- To be or not to be. -- Shakespeare To do is to be. -- Nietzsche To be is to do. -- Sartre Do be do be do. -- Sinatra
Re: SLRN : toggling sort mode AND header display in article mode ?
Author: John E. Davis
Date: Fri, 24 Apr 1998 00:00
Date: Fri, 24 Apr 1998 00:00
46 lines
2038 bytes
2038 bytes
On 24 Apr 1998 12:50:51 GMT, Pascal A. Dupuis <dupuis@lei.ucl.ac.be>
wrote:
>Hello,
>just start using the header_display_format with slrn 0.9.5.1. Question is:
>-in default sort mode, I wish to have display format 0 (with line count)
>-in unsorted mode, I wish to have format 1 (with ref number).
>Is it possible to embbed this change in display format when invoking the
>"\eS" key ?
When I wrote the new header formatting code, I debated about whether
or not to add a hook to the sorting mode to allow the user to change
the display format. I decided to put the burden on the user by having
the user write a wrapper around the sort function, e.g.,
define my_toggle_sort ()
{
variable sorting_method;
call ("toggle_sort");
sorting_method = get_variable_value ("sorting_method");
switch (sorting_method)
{
case 0: % unsorted
set_header_display_format (0, whatever....);
}
{
case 1:
set_header_display_format (0, ...);
}
.
.
{
% default
set_header_display_format (0, ...);
}
}
definekey ("my_toggle_sort", "\eS", "article");
--
John E. Davis Center for Space Research/AXAF Science Center
617-258-8119 One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis Cambridge, MA 02139-4307
Re: SLRN : toggling sort mode AND header display in article mode ?
Author: Pascal A. Dupuis
Date: Mon, 27 Apr 1998 00:00
Date: Mon, 27 Apr 1998 00:00
47 lines
1948 bytes
1948 bytes
Thus spake John E. Davis on news.software.readers
>When I wrote the new header formatting code, I debated about whether
>or not to add a hook to the sorting mode to allow the user to change
>the display format. I decided to put the burden on the user by having
>the user write a wrapper around the sort function, e.g.,
>
> define my_toggle_sort ()
> {
> variable sorting_method;
> call ("toggle_sort");
> sorting_method = get_variable_value ("sorting_method");
>
> switch (sorting_method)
> {
> case 0: % unsorted
> set_header_display_format (0, whatever....);
> }
> {
> case 1:
> set_header_display_format (0, ...);
> }
> .
> .
> {
> % default
> set_header_display_format (0, ...);
> }
> }
>
> definekey ("my_toggle_sort", "\eS", "article");
>
Thanks for the reply, John. But would it be possible to have a number of
standard headers formats, and switch to one of them, not redefine the
actual format ? Which variable should be updated ?
Thanks in advance
Pascal A. Dupuis
--
To be or not to be. -- Shakespeare
To do is to be. -- Nietzsche
To be is to do. -- Sartre
Do be do be do. -- Sinatra
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