🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #40450

Re: SLRN : toggling sort mode AND header display in article mode ?

#40450
From: Pascal A. Dupuis
Date: Mon, 27 Apr 1998 00:00
47 lines
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

Technical Details
Message-ID: <slrn6k8lap.7is.dupuis@pc-dupuis.lei.ucl.ac.be>
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
References: <slrn6k12j9.3mq.dupuis@pc-dupuis.lei.ucl.ac.be> <slrn6k1kqf.7r1.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6k8lap.7is.dupuis@pc-dupuis.lei.ucl.ac.be>
Subject: Re: SLRN : toggling sort mode AND header display in article mode ?
Date: Mon, 27 Apr 1998 00:00:00 +0000
From: dupuis@lei.ucl.ac.be (Pascal A. Dupuis)
References: <slrn6k12j9.3mq.dupuis@pc-dupuis.lei.ucl.ac.be> <slrn6k1kqf.7r1.davis@aluche.mit.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: 348035754
Reply-To: dupuis@lei.ucl.ac.be
Organization: Electricity Department, UCL, Be
Newsgroups: news.software.readers