🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #240912

Re: slrn editor_command error

#240912
From: narke
Date: Mon, 17 May 2010 05:37
59 lines
2986 bytes
On 2010-05-17, Keith <kilowattradio@use-reply-to.invalid> wrote:
> On Mon, 17 May 2010 03:07:28 GMT, narke <narkewoody@gmail.com> wrote:
>
>>Hi,
>>
>>I got probelm when using the editor_command option of slrn.  
>>When the option is
>>not used, everything is okay. But when I enabled it, it failed:
>>
>>1. If I use the origianl setting 
>>"editor_command = gvim -c %s '%d'", I will get
>>an editor without header in it, and can not save.
>>
>>2. If I use my own setting "editor_command = gvim -c 'set textwidth=80' '%d'",
>>gvim will complain that it can not process the command line.
>>
>>
>>Do you know what are the possible causes? Thanks.
>>
>>
>>-
>>narke
>
>  Don't use a `=` sign when assigning variables to parameters in .slrnrc. You
> use `=` in macros & scripts.
>

I've found the cause for the error, please refer my reply to
Indi. On the other hand, I found I don't understand your point.
If I should not use `=` to assign value to variables. How do I do
it? Especially, when I want gvim to wrap my inputs to make it no
longer than 80 columns when I am acutually composing an Usenet
article?

> [snip]
> % Set your favourite editor.  Use %s for the file name and %d for the line
> % where the cursor should be placed (usually at the beginning of the body).
> %set editor_command "jed '%s' -g %d -tmp"
> set editor_command "pico -t +%d '%s'"
> [snip]
>
> From the color.sl macro:
>
> % The macro illustrates several things:
> %
> %   * How to create and use a linked list in the S-Lang language
> %   * Interaction with files
> %   * The slrn select_list_box function
>
> variable Color_List_Root = NULL;
>
> define color_save_colors_to_file ()
> {
> [snip]

I don't get it. Why you show me the color.sl?

-
narke
Technical Details
Message-ID: <slrnhv1lhn.52k.narkewoody@cnzuhnb639.ap.bm.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!border1.nntp.dca.giganews.com!nntp.giganews.com!aotearoa.belnet.be!news.belnet.be!newsfeed.kpn.net!pfeed09.wxs.nl!feeder2.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.71.MISMATCH!xlned.com!feeder3.xlned.com!feeder.news-service.com!cyclone01.ams2.highwinds-media.com!news.highwinds-media.com!npeersf02.ams.highwinds-media.com!newsfe29.ams2.POSTED!88eed779!not-for-mail
References: <slrnhv1cng.510.narkewoody@cnzuhnb639.ap.bm.net> <hsqge002mrb@news6.newsguy.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnhv1lhn.52k.narkewoody@cnzuhnb639.ap.bm.net>
Subject: Re: slrn editor_command error
Date: Mon, 17 May 2010 05:37:59 GMT
From: narke <narkewoody@gmail.com>
References: <slrnhv1cng.510.narkewoody@cnzuhnb639.ap.bm.net> <hsqge002mrb@news6.newsguy.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!border1.nntp.dca.giganews.com!nntp.giganews.com!aotearoa.belnet.be!news.belnet.be!newsfeed.kpn.net!pfeed09.wxs.nl!feeder2.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.71.MISMATCH!xlned.com!feeder3.xlned.com!feeder.news-service.com!cyclone01.ams2.highwinds-media.com!news.highwinds-media.com!npeersf02.ams.highwinds-media.com!newsfe29.ams2.POSTED!88eed779!not-for-mail
Newsgroups: news.software.readers
User-Agent: slrn/0.9.9p1/mm/ao (Win32)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 59
X-Complaints-To: abuse@newsgroups-download.com
NNTP-Posting-Date: Mon, 17 May 2010 05:37:59 UTC
Organization: Public Usenet Newsgroup Access