🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
16 messages
16 total messages Started by Jan Hlavacek Mon, 30 Jun 1997 00:00
Re: slrn questions
#34720
Author: Jan Hlavacek
Date: Mon, 30 Jun 1997 00:00
57 lines
2984 bytes
On 30 Jun 97 04:01:48 GMT, J.B. Nicholson-Owens
<jbn@pop-a-wheelie.midwest.net> wrote: 
>Gottfried Schwieters <gottfriedsw@cww.de> wrote:
>> Is it possible to mark a thread as read in the group window?
>
>Yes, collapse the thread then hit 'd' to mark the entire thread as
>collapsed.
>

define delete_thread ()
{
   collapse_thread ();
   call ("delete");
}
definekey ("delete_thread", "D", "article");


>> As I am reading news offline I would like to collect some URLs
>> given in the articles in a (bookmark-)file for later processing
>> with a news-reader (netscape). Has anybody done something like this?
>

Why don't you write a little shell or perl script which would take its
argument,  wrap it into some html code,  and append it to your bookmark
file?  You can than set the Xbrowser or non_Xbrowser to this script, instead
the actual web browser.

>
>> [...] a group has new unread articles (mostly only few, 1-3)
>> is still listed with 0 in the group window. When selecting this
>> group the new articles are shown correctly (without 'D', so unread)
>> and when immediatly changing back with 'q' the counter is correctly
>> updated. Unfortunately because of this I sometimes miss some articles.
>
>It's hard to say if it's slrn getting the article count wrong or if it's
>being fed bad numbers by your server (either in the active data or as a
>response to the NNTP GROUP command).  Hopefully someone with more time can
>investigate this closely and report back to the newsgroup, I'd be interested
>to learn if I'm missing articles due to something other than my scorefile.

I recall noticing something like that yesterday,  but I am not very sure,
since I usually don't pay to much attention to the number of articles in the
group.  I beleive that I had a group which claimed to have 3 articles in it,
and when I went in there was 5 of them.  Usually it is the other way around,
for obvious reasons,  so this surprised me.  I quit the newsgroup,  and this
time it said 5.  However, as I said I am not completely sure about the 3,
maybe I just misread the number.  

lahvak
-- 
Jan Hlav\'{a}\v{c}ek
lahvak+n@math.ohio-state.edu  (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/  is back!


Re: slrn questions
#34778
Author: Jan Hlavacek
Date: Tue, 01 Jul 1997 00:00
25 lines
1578 bytes
On 1 Jul 1997 09:47:45 GMT, John E. Davis <davis@space.mit.edu> wrote:
>On 30 Jun 1997 07:33:49 GMT, Jan Hlavacek <lahvak+n@math.ohio-state.edu>
>wrote:
>>group.  I beleive that I had a group which claimed to have 3 articles in it,
>>and when I went in there was 5 of them.  Usually it is the other way around,
>
>Immediately before slrn enters a newsgroup, it send the GROUP command
>to the server.  It is very possible that more articles were received
>by the server between the time when slrn was first started and when
>you attemped to enter the group.
>

How simple :-)  

Of course, this makes perfect sense.

lahvak
-- 
Jan Hlav\'{a}\v{c}ek
lahvak+n@math.ohio-state.edu  (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/  is back!


Re: slrn questions
#34780
Author: John E. Davis
Date: Tue, 01 Jul 1997 00:00
14 lines
1159 bytes
On 30 Jun 1997 07:33:49 GMT, Jan Hlavacek <lahvak+n@math.ohio-state.edu>
wrote:
>group.  I beleive that I had a group which claimed to have 3 articles in it,
>and when I went in there was 5 of them.  Usually it is the other way around,

Immediately before slrn enters a newsgroup, it send the GROUP command
to the server.  It is very possible that more articles were received
by the server between the time when slrn was first started and when
you attemped to enter the group.

--John

Re: slrn questions
#34781
Author: Jan Hlavacek
Date: Tue, 01 Jul 1997 00:00
55 lines
2762 bytes
On 30 Jun 1997 21:01:01 GMT, Gottfried Schwieters <gottfriedsw@cww.de> wrote:
>
>I hope not to bother too much but I have some further questions:
>
>Is it possible to spawn a new xterm (yes I'm using X) for editing new
>postings and follow-ups. Right now with writing this article I would
>like to have an eye on the other posts of this thread, but how?

You can use the new "postpone" feature.  Put the following in your .slrnrc:

set postpone_directory News/Postponed

or smthing ling that (relative to your home directory, and the directory
MUST EXIST).  Then, when you exit your editor, answer 's' for poStpone
instead usual 'y' for post. Slrn will prompt you for a name of new file in
the postpone_directory. You answer, say "slrn_questions".  Then you return
to slrn and you can read other articles. In the meantime, you can edit the
~/News/Postponed/slrn_questions file, which contains your message.  When you
want to post it,  save it,  and press 'ESC P' (capital P) in slrn.  It will
show you a menu with all postponed articles,  you choose slrn_questions,
and post it.  

>
>I would like to customize the display of the group window. Is this
>possible? 'Esc a' toggles the display, I would like to make the display,
>where the author-names are at the right side of the window, default.

change

set author_display 2

in your ./slrnrc to

set author_display 1

For more info on variables you can set in .slrnrc,  look at 
  http://www.math.ohio-state.edu/~lahvak/software/slrn/vars.html

>And I would like to have the date in the group window and leave out the
>article numbers (why is it there?).
>

I believe you can type the number and it will take the cursor to the
article.  I don't use it,  but it sounds like pretty fast way to move
around.  

lahvak
-- 
Jan Hlav\'{a}\v{c}ek
lahvak+n@math.ohio-state.edu  (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/  is back!


Re: [SLRN] delete_thread (was Re: slrn questions)
#34819
Author: Hubert Canon
Date: Thu, 03 Jul 1997 00:00
48 lines
2390 bytes
J.B. Nicholson-Owens ecrivait :
> Hubert Canon <Hubert.Canon@irisa.fr> wrote:
> > I have this at the end of my .slrnrc :
> > interpret ".slrn.sl"
> 
> ...is .slrn.sl in your homedir?  If not, you need to give the path as an
> offset to your homedir or, as you said, an absolute path leading to the
> file.

Yes it is. Does "$HOME/.slrn.sl" or "~/.slrn/sl" do the trick ?

> > and I put the macro in .slrn.sl

exactly what was given :
define delete_thread ()
{
   collapse_thread ();
   call ("delete");
}
definekey ("delete_thread", "D", "article");

> Did you bind the macro to the keys you want to use?  You didn't mention
> whether you did or not.  If you did all these things and you still get an
> error, what was the error, exactly?

There is no error : the key doesn't do what it should do.

One more question : are "d" and "D" different or is it the same key ?

> > Another question :
> > Is there a way to reload .slrnrc or .slrn.sl without quitting slrn ?
> 
> Yes, you can make a macro to eval() a string (I think JED included one with
> slrn) and use that to type in S-Lang code to set things as you go, including
> evalfile() some S-Lang code file.  I don't know of a way to reload one's
> slrnrc after slrn has been started, the best suggestion I can offer is a
> bunch of set_[integer|string]_variable() calls.

Does this work ?
define reload_macros () {
  evalfile(".slrn.sl");
}

-- 
Hubert Canon

[SLRN] delete_thread (was Re: slrn questions)
#34824
Author: Hubert Canon
Date: Thu, 03 Jul 1997 00:00
32 lines
1521 bytes
Gottfried Schwieters wrote :
> >define delete_thread ()
> >{
> >   collapse_thread ();
> >   call ("delete");
> >}
> >definekey ("delete_thread", "D", "article");
> >
> 
> After finding out where to put this and how to load it...
> Yes it works great.

I tried it. It worked once, but it doesn't work any more. Is it
because I have upgraded to 0.9.4.1 ?

I have this at the end of my .slrnrc :
interpret ".slrn.sl"

(should I give the absolute path ?)

and I put the macro in .slrn.sl

I tried with "d". "\eD" and other keys but it chnaged nothing.

Another question :
Is there a way to reload .slrnrc or .slrn.sl without quitting slrn ?

-- 
Hubert Canon

Re: [SLRN] delete_thread (was Re: slrn questions)
#34827
Author: John E. Davis
Date: Thu, 03 Jul 1997 00:00
41 lines
2347 bytes
On 3 Jul 1997 15:32:23 GMT, Jan Hlavacek <lahvak+n@math.ohio-state.edu>
wrote:
>On 3 Jul 1997 14:58:46 GMT, Hubert Canon <Hubert.Canon@irisa.fr> wrote:
>>Does this work ?
>>define reload_macros () {
>>  evalfile(".slrn.sl");
>>}

  Only do this if you have reload_macros in a different file that will
not be evaluated when .slrn.sl is evaluated.  That is, use:

    interpret ".slrn.sl"
    interpret ".reload.sl"
    
where .reload.sl consists of:

   define reload_macros ()
   {
      () = evalfile (".slrn.sl");
   }

That is, never redefine a function while the function is executing.  A
future version of slang will correctly handle this situation but the
current version does not, which may result in a core dump.

>Exactly.  By the way,  John,  if you are reading this,  does slrn overrides
>the slang evalfile function?  It doesn't seem to return a value.

  0.9.4.2 redefines the function to search along the macro path.  The
previous versions did not do this, which means that
`evalfile(".slrn.sl")' will only load .slrn.sl in the current directory.

My advice is to either use absolute pathnames with evalfile, or to
wait until 0.9.4.2 is released (this weekend).
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis

Re: [SLRN] delete_thread (was Re: slrn questions)
#34829
Author: Hubert Canon
Date: Thu, 03 Jul 1997 00:00
31 lines
1673 bytes
Jan Hlavacek ecrivait :
> >define delete_thread ()
> >{
> >   collapse_thread ();
> >   call ("delete");
> >}
> >definekey ("delete_thread", "D", "article");
> 
> It works for me.
> 
> >There is no error : the key doesn't do what it should do.
> 
> What dos it do?  Does it just delete one article?

It deletes the subthread (just like \eD)

> >Does this work ?
> >define reload_macros () {
> >  evalfile(".slrn.sl");
> >}
> 
> Exactly.  By the way,  John,  if you are reading this,  does slrn overrides
> the slang evalfile function?  It doesn't seem to return a value.

Don't I need to use "call" ?

-- 
Hubert Canon

Re: [SLRN] delete_thread (was Re: slrn questions)
#34837
Author: Jan Hlavacek
Date: Thu, 03 Jul 1997 00:00
64 lines
2957 bytes
On 3 Jul 1997 14:58:46 GMT, Hubert Canon <Hubert.Canon@irisa.fr> wrote:
>J.B. Nicholson-Owens ecrivait :
>> Hubert Canon <Hubert.Canon@irisa.fr> wrote:
>> > I have this at the end of my .slrnrc :
>> > interpret ".slrn.sl"
>> 
>> ...is .slrn.sl in your homedir?  If not, you need to give the path as an
>> offset to your homedir or, as you said, an absolute path leading to the
>> file.
>
>Yes it is. Does "$HOME/.slrn.sl" or "~/.slrn/sl" do the trick ?

Now,  as long as it is in your $HOME,   you don't need to give the path.  At
least if you didn't set macro_directory to something else.  

>
>> > and I put the macro in .slrn.sl
>
>exactly what was given :
>define delete_thread ()
>{
>   collapse_thread ();
>   call ("delete");
>}
>definekey ("delete_thread", "D", "article");

It works for me.

>There is no error : the key doesn't do what it should do.

What dos it do?  Does it just delete one article?

>
>One more question : are "d" and "D" different or is it the same key ?

They are different.  "d" by default just deletes one article.  "D" with the
above function deletes whole subthread.

>
>> > Another question :
>> > Is there a way to reload .slrnrc or .slrn.sl without quitting slrn ?
>> 
>> Yes, you can make a macro to eval() a string (I think JED included one with
>> slrn) and use that to type in S-Lang code to set things as you go, including
>> evalfile() some S-Lang code file.  I don't know of a way to reload one's
>> slrnrc after slrn has been started, the best suggestion I can offer is a
>> bunch of set_[integer|string]_variable() calls.
>
>Does this work ?
>define reload_macros () {
>  evalfile(".slrn.sl");
>}

Exactly.  By the way,  John,  if you are reading this,  does slrn overrides
the slang evalfile function?  It doesn't seem to return a value.

-- 
Jan Hlav\'{a}\v{c}ek
lahvak+n@math.ohio-state.edu  (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/  is back!


Re: [SLRN] delete_thread (was Re: slrn questions)
#34846
Author: Jan Hlavacek
Date: Fri, 04 Jul 1997 00:00
36 lines
2050 bytes
On 4 Jul 97 06:12:46 GMT, J.B. Nicholson-Owens
<jbn@pop-a-wheelie.midwest.net> wrote: 
>Hubert Canon <Hubert.Canon@irisa.fr> wrote:

>> Does this work ?
>> define reload_macros () {
>>   evalfile(".slrn.sl");
>> }
>
>Close, you probably want to change that evalfile() to
>
>  () = evalfile (strcat (getenv ("HOME"), "/.slrn.sl"));
>
>The differences being:
>* "() = " means throw away the returned value.
>* strcat (...) gets your homedir from the HOME env. var. and appends
>  "/.slrn.sl" forming a path from the root dir then passes that to
>  evalfile.
>

You are right with the strcat (...),  but the () = part causes slrn to
complain about stack underflow.  It seems that slrn overrides the slang
evalfile function,  so that it doesn't return a value.  

Also,  it would be nice if slrn have the same expand_filename capabilities
as JED does.  

lahvak
-- 
Jan Hlav\'{a}\v{c}ek
lahvak+n@math.ohio-state.edu  (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/  is back!


[SLRN] one more question (was Re: [SLRN] delete_thread)
#34936
Author: Hubert Canon
Date: Tue, 08 Jul 1997 00:00
20 lines
1822 bytes
Jan Hlavacek ecrivait :
> OK, this may be the problem.  Try to use different name for the function,
[...]
> What happens is that slrn gives priority to internal functions when mapping
> keys,  so in the mapping I suggested,  slrn was calling internal function
> delete_thread which deletes subthread,  and which is by default
> mapped to \eD. 

Thank you.

BTW where can I find the name of the function which can be called
inside a macro (with call) ? All I found was in the source code (use
the source, Luke) : in art.c and group.c, the lines with A_KEY.
And can we write macros for the readline mode ?

-- 
Hubert Canon

Re: [SLRN] delete_thread (was Re: slrn questions)
#34938
Author: Jan Hlavacek
Date: Tue, 08 Jul 1997 00:00
45 lines
2469 bytes
On 8 Jul 1997 13:54:37 GMT, Hubert Canon <Hubert.Canon@irisa.fr> wrote:
>Hubert Canon ecrivait :
>> > >define delete_thread ()
>> > >{
>> > >   collapse_thread ();
>> > >   call ("delete");
>> > >}
>> > >definekey ("delete_thread", "D", "article");
>
>I updated to slrn0.9.4.2 and it doesn't work either. I tried the
>"execute_slang" to see what is going on :
>When I try the "D" key, it doen't work (it deletes only the subthread
>and doesn't collapse anything)
>When I try `delete_thread ()', it works (it collapses the entire thread
>and deletes it)
>When I try `call ("delete_thread")', it does the same as the "D" key.
>
>Did I miss something ?
>

OK, this may be the problem.  Try to use different name for the function,
i.e.  do something like

define thread_delete ()
{
   collapse_thread ();
   call ("delete");
}
definekey ("thread_delete",  "D", "article");

What happens is that slrn gives priority to internal functions when mapping
keys,  so in the mapping I suggested,  slrn was calling internal function
delete_thread which deletes subthread,  and which is by default mapped to \eD.

I had a misspelling in my .slrn.sl,  so it worked for me.  :-)

lahvak
-- 
Jan Hlav\'{a}\v{c}ek
lahvak+n@math.ohio-state.edu  (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/  is back!


Re: [SLRN] delete_thread (was Re: slrn questions)
#34945
Author: Hubert Canon
Date: Tue, 08 Jul 1997 00:00
23 lines
1673 bytes
Hubert Canon ecrivait :
> > >define delete_thread ()
> > >{
> > >   collapse_thread ();
> > >   call ("delete");
> > >}
> > >definekey ("delete_thread", "D", "article");

I updated to slrn0.9.4.2 and it doesn't work either. I tried the
"execute_slang" to see what is going on :
When I try the "D" key, it doen't work (it deletes only the subthread
and doesn't collapse anything)
When I try `delete_thread ()', it works (it collapses the entire thread
and deletes it)
When I try `call ("delete_thread")', it does the same as the "D" key.

Did I miss something ?

--
Hubert Canon

Re: [SLRN] one more question (was Re: [SLRN] delete_thread)
#34956
Author: John E. Davis
Date: Tue, 08 Jul 1997 00:00
16 lines
1570 bytes
On 8 Jul 1997 15:48:15 GMT, Hubert Canon <Hubert.Canon@irisa.fr>
wrote:
>BTW where can I find the name of the function which can be called
>inside a macro (with call) ? All I found was in the source code (use
>the source, Luke) : in art.c and group.c, the lines with A_KEY.

  Currently, grepping on A_KEY is the only way.

>And can we write macros for the readline mode ?

  Not yet.

--John

Re: [SLRN] one more question (was Re: [SLRN] delete_thread)
#34999
Author: Jan Hlavacek
Date: Wed, 09 Jul 1997 00:00
17 lines
1824 bytes
In article <slrn5s4o9u.1bq.Hubert.Canon@guenievre.irisa.fr>, Hubert Canon wrote:
>
>BTW where can I find the name of the function which can be called
>inside a macro (with call) ? All I found was in the source code (use
>the source, Luke) : in art.c and group.c, the lines with A_KEY.

It's on my to-do list :-).

lahvak
-- 
Jan Hlav\'{a}\v{c}ek <lahvak@math.ohio-state.edu>  (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/

Re: [SLRN] one more question (was Re: [SLRN] delete_thread)
#35146
Author: Jan Hlavacek
Date: Mon, 14 Jul 1997 00:00
25 lines
2077 bytes
On 8 Jul 1997 21:00:26 GMT, John E. Davis <davis@space.mit.edu> wrote:
>On 8 Jul 1997 15:48:15 GMT, Hubert Canon <Hubert.Canon@irisa.fr>
>wrote:
>>BTW where can I find the name of the function which can be called
>>inside a macro (with call) ? All I found was in the source code (use
>>the source, Luke) : in art.c and group.c, the lines with A_KEY.
>
>  Currently, grepping on A_KEY is the only way.
>

The list is available on

http://www.math.ohio-state.edu/~lahvak/software/slrn/internals.html

Comments welcomed.

lahvak
-- 
Jan Hlav\'{a}\v{c}ek <lahvak+n@math.ohio-state.edu>  (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/

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