🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #195624

Re: [slrn]How to...?

#195624
From: Blinky the Shark
Date: Thu, 15 Feb 2007 02:12
107 lines
5165 bytes
Troy Piggins wrote:
> * Blinky the Shark is quoted & my replies are inline below :
>> Troy Piggins wrote:
>>> * Blinky the Shark is quoted & my replies are inline below :
>>>> Troy Piggins wrote:
>>>>> * Blinky the Shark is quoted & my replies are inline below :
>>>>>> Troy Piggins wrote:
>>>>>> [---=| Quote block shrinked by t-prot: 22 lines snipped |=---]
>>>>>>>>>
>>>>>>>>> If you have changed nothing CTL + t (NOT UPPERCASE) should open mutt as
>>>>>>>>> I have done the exact same thing with the exception of the name of the
>>>>>>>>> file. The UPPERCASE threw me off, in gnome terminal CTL + SHIFT + t =
>>>>>>>>> new tab in my terminal so I thought it wasnt working either. For giggles
>>>>>>>>> I left off the shift and Voila.
>>>>>>>>
>>>>>>>> I changed the keybinding to ^o (as a memory aid, since Save is o).
>>>>>>>
>>>>>>> Bugger - thought we'd found it.
>>>>>>
>>>>>> Why would upper/lower matter, as long as I used the binding assigned?
>>>>>
>>>>> I was thinking that if, e.g., you had bound ^O but were keying
>>>>> ctrl-shift-o it may not be working.  No matter.
>>>>>
>>>>> Another thought - can you invoke mutt by invoking the
>>>>> interpretter (ctrl-x esc) and typing the command:
>>>>>
>>>>> system ("mutt")
>>>>
>>>> And this works, too, doing what the macro is supposed to do:
>>>>
>>>> system ("mutt -f ~/News/slrn/saves")
>>
>> First, here is my customization of your macro:
>>
>> define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves); }
>                                                                      ^^^^ 
>
> That second error you posted seems to tell the story.  You are missing a
> closing " after 'saves'.
>
>> definekey ("view_my_saves", "^o", "article");
>> definekey ("view_my_saves", "^o", "group");
>>
>> I have it both in my_hooks.sl and in the new muttview.sl
>>
>> I tried it in my_hooks.sl because there was one definition in there that
>> had almost the same format as yours, so I figured perhaps that's where
>> it is supposed to go.  I also tried, as you know, making a new .sl for
>> it.
>>
>>> Next step, try this at the interpreter:
>>>
>>> view_my_posts
>>
>> S-Lang Error: Undefined Name: view_my_saves is undefined
>>
>>> And try: 
>>>
>>> evalfile("mutthook.sl")
>>
>> S-Lang Error: Syntax Error: Expecting quote-character: found '??',
>> line 1, file: /usr/share/slrn/macros/muttview.sl
>
> Hope that's it :)

Added the doublequotes to each file

my_hook.sl
----------_

% This macro will bind slrn help to <F1>. 

define view_manual ()
{
   system ("zless /usr/share/doc/slrn/manual.txt.gz");
}
definekey ("view_manual", "<F1>", "article");
definekey ("view_manual", "<F1>", "group");

% Allows reading slrn-saved posts with Mutt - within slrn 
% DOESN'T WORK

define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves)"; }
definekey ("view_my_saves", "^o", "article");
definekey ("view_my_saves", "^o", "group");

muttview.sl
-----------

define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves"); }
definekey ("view_my_saves", "^o", "article");
definekey ("view_my_saves", "^o", "group");


Results:

view_my_posts  does nothing

evalfile("mutthook.sl")  does nothing



-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Technical Details
Message-ID: <slrnet7gak.hn.no.spam@thurston.blinkynet.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrnet33lg.a2u.chrisgame@URANUS.example.net> <20070213121650.59D7.0.NOFFLE@ID-107770.user.individual.net> <slrnet40d1.5p6.chrisgame@URANUS.example.net> <20070214074207@usenet.piggo.com> <slrnet57cl.alo.no.spam@thurston.blinkynet.net> <20070214154555@usenet.piggo.com> <slrnet5e59.c93.no.spam@thurston.blinkynet.net> <ilfba4xieo.ln2@news.gates-of-hell.com> <slrnet6u72.rls.no.spam@thurston.blinkynet.net> <20070215071824@usenet.piggo.com> <slrnet70p9.rls.no.spam@thurston.blinkynet.net> <20070215081555@usenet.piggo.com> <slrnet792p.rls.no.spam@thurston.blinkynet.net> <20070215103124@usenet.piggo.com> <slrnet7cek.rls.no.spam@thurston.blinkynet.net> <20070215113351@usenet.piggo.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnet7gak.hn.no.spam@thurston.blinkynet.net>
Subject: Re: [slrn]How to...?
Date: Thu, 15 Feb 2007 02:12:26 +0000
From: Blinky the Shark <no.spam@box.invalid>
References: <slrnet33lg.a2u.chrisgame@URANUS.example.net> <20070213121650.59D7.0.NOFFLE@ID-107770.user.individual.net> <slrnet40d1.5p6.chrisgame@URANUS.example.net> <20070214074207@usenet.piggo.com> <slrnet57cl.alo.no.spam@thurston.blinkynet.net> <20070214154555@usenet.piggo.com> <slrnet5e59.c93.no.spam@thurston.blinkynet.net> <ilfba4xieo.ln2@news.gates-of-hell.com> <slrnet6u72.rls.no.spam@thurston.blinkynet.net> <20070215071824@usenet.piggo.com> <slrnet70p9.rls.no.spam@thurston.blinkynet.net> <20070215081555@usenet.piggo.com> <slrnet792p.rls.no.spam@thurston.blinkynet.net> <20070215103124@usenet.piggo.com> <slrnet7cek.rls.no.spam@thurston.blinkynet.net> <20070215113351@usenet.piggo.com>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 107
X-Trace: individual.net aKIofitBFdphDK4QWwbd5gAbVlq3qGOOHcUyUaeLGASNV9hIpw
X-Face: Jb-wQ7r&vrN}~8MC5B09S4&.ieh!Q:Di/XN.xrd#CU%;
 )bPa`Hm^(,3o$n(s75[P+$F+Q^4~Owj`WzkBtZU/#gL2BvEBm/e=/1,R0}d@q@)E
X-OS: Mandriva 2006 Linux; kernel 2.6.12
X-WebTV-Stationery: Standard; BGColor=black; TextColor=black
User-Agent: slrn/0.9.8.1 (Linux)