🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #240908

Re: slrn editor_command error

#240908
From: Keith
Date: Mon, 17 May 2010 04:14
43 lines
2329 bytes
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.

[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]
Technical Details
Message-ID: <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.ams.giganews.com!nntp.giganews.com!newsfeed.kpn.net!pfeed09.wxs.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news6
References: <slrnhv1cng.510.narkewoody@cnzuhnb639.ap.bm.net>

Show Full Headers
Complete Article Headers
Message-ID: <hsqge002mrb@news6.newsguy.com>
Subject: Re: slrn editor_command error
Date: Sun, 16 May 2010 21:14:52 -0700
From: Keith <kilowattradio@use-reply-to.invalid>
References: <slrnhv1cng.510.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.ams.giganews.com!nntp.giganews.com!newsfeed.kpn.net!pfeed09.wxs.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news6
Newsgroups: news.software.readers
Organization: NewsGuy - Unlimited Usenet $19.95
Lines: 43
NNTP-Posting-Host: p3c06ba89c80d5cd1c65a2a3fb4426c1c89fed9b2b5f67bc1.newsdawg.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 6.00/32.1186