Article View: news.software.readers
Article #240982Re: slrn editor_command error
From: Keith
Date: Tue, 18 May 2010 09:14
Date: Tue, 18 May 2010 09:14
61 lines
2833 bytes
2833 bytes
Keith wrote in news:<hsqge002mrb@news6.newsguy.com>:
> 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]
You used "editor_command = gvim -c %s '%d'"
in .slrnrc. The proper format for the .slrnrc file
is:
"editor_command gvim -c %s '%d'"
If your program requires an = sign for a switch make sure that it is in
quotes so that slrn doesn't attempt to interpret the = sign:
editor_command gvim -c %s 'foo=blah' '%d'
HTH,
--
Best Regards, Keith | http://home.comcast.net/~kilowattradio/
Tired of Google Groups? Use free Usenet access & programs.
http://home.comcast.net/~kilowattradio/usenet.html
Technical Details
Message-ID:
<hstlpc02oc5@news1.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!border2.nntp.ams.giganews.com!nntp.giganews.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!spln!extra.newsguy.com!newsp.newsguy.com!news1References:
<slrnhv1cng.510.narkewoody@cnzuhnb639.ap.bm.net> <hsqge002mrb@news6.newsguy.com>Show Full Headers
Complete Article Headers
Message-ID: <hstlpc02oc5@news1.newsguy.com> Subject: Re: slrn editor_command error Date: Tue, 18 May 2010 09:14:20 +0000 From: Keith <kilowattradio@use-reply-to.invalid> 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.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!spln!extra.newsguy.com!newsp.newsguy.com!news1 Newsgroups: news.software.readers Organization: http://slrn.org/ Open Source Software Lines: 61 Reply-To: kilowattradio@gmail.com NNTP-Posting-Host: pe56b954943a09ec76dd5934e5be15d05bb9f3232fbbb2732.newsdawg.com User-Agent: slrn/pre1.0.0-11 (Darwin)