🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #79765

Re: [slrn] editor_command

#79765
From: Bill McCarthy
Date: Sat, 02 Jun 2001 18:19
38 lines
2180 bytes
On 02 Jun 2001 05:45:24 GMT, John E. Davis wrote:
> On Sat, 02 Jun 2001 04:27:07 GMT, Bill McCarthy <WJMc@pobox.com>
> wrote:
>>I've tried using %vimalpha%\\gvim and $vimalpha\\gvim to no avail.
> 
> I was originally suggest that you use
> 
>   set editor_command "start %%vimalpha%%\\gvim +%d %s"
> 
> However, I believe that the parsing of the '%' character when creating
> the editor comamnd is somewhat naive.  So, I suggest that you try
> 
>   set editor_command "start \\x25vimalpha\x25\\gvim +%d %s"

Both the above suggestions failed :-(

> If this fails, you may have to create a macro file and use, e.g.,
> 
>   set_string_variable (sprintf ("start %s\\gvim +%%d +%%s", 
>                                 getenv ("vimalpha")));

I had to make a couple of small changes, but I created a macro file
set_ed.sl in my "home" directory and included a line:

    interpret set_ed.sl

in my slrn.rc.  Here the entire file set_ed.sl:

    set_string_variable ("editor_command",
        sprintf ("start %s\\gvim +%%d %%s",
        getenv ("vimalpha")) );

This works perfectly!

Thanks, John, for helping me out,

Bill
Technical Details
Message-ID: <j7aS6.3966$t4.16365@news-reader.ntrnet.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.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news-east.rr.com!news.rr.com!portc01.blue.aol.com!newsfeed.skycache.com!Cidera!news-reader.ntrnet.net!not-for-mail
References: <vWZR6.1344$t4.16347@news-reader.ntrnet.net> <slrn9hgvbi.ih1.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <j7aS6.3966$t4.16365@news-reader.ntrnet.net>
Subject: Re: [slrn] editor_command
Date: Sat, 02 Jun 2001 18:19:59 GMT
From: WJMc@pobox.com (Bill McCarthy)
References: <vWZR6.1344$t4.16347@news-reader.ntrnet.net> <slrn9hgvbi.ih1.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news-east.rr.com!news.rr.com!portc01.blue.aol.com!newsfeed.skycache.com!Cidera!news-reader.ntrnet.net!not-for-mail
Newsgroups: news.software.readers
User-Agent: slrn/0.9.7.0 (Win32)
Lines: 37
NNTP-Posting-Host: 63.24.184.114
X-Complaints-To: abuse@ntrnet.net
X-Trace: news-reader.ntrnet.net 991505999 63.24.184.114 (Sat, 02 Jun 2001 14:19:59 EDT)
NNTP-Posting-Date: Sat, 02 Jun 2001 14:19:59 EDT