🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
18 messages
18 total messages Started by Pholus Thu, 20 Mar 2003 01:11
Can't get external editor to work in slrn
#122076
Author: Pholus
Date: Thu, 20 Mar 2003 01:11
30 lines
2389 bytes
Well, I've managed to get slrn to connect and retrieve from my server, 
but I can't get any external editors to work, so no posting. I've tried 
vi and vim but when I try to post, I get the error "editor returned 
nonzero status" from both of them. I put the following line in slrn.rc:
set editor_command "vim '+set tw=72' %d %s -tmp
I'm not sure what the problem is, or what to do about it. I tried 
starting slrn from both within X and command shell with the same result.
Here is the output from slrn --version:
Slrn 0.9.7.4 [2002-03-13]
S-Lang Library Version: 1.4.5
Compiled at: Jul  9 2002 00:54:02
Operating System: Linux

  COMPILE TIME OPTIONS:
   Backends: +nntp +slrnpull +spool
   External programs / libs: -inews +ssl -uudeview
   Features: +charset_mapping +decoding +emphasized_text +end_of_thread
     +fake_refs +gen_msgid -grouplens +mime -msgid_cache +piping +rnlock
     +slang +spoilers -strict_from +verbatim_marks
  DEFAULTS:
   Default server object:     nntp
   Default posting mechanism: nntp
   Default character set:     isolatin
  SUPPORTED CHARACTER SETS:
   isolatin ibm850 ibm852 ibm737 NeXT koi8

This is the precompiled binary that came with Redhat 8.0
Any ideas?

Re: Can't get external editor to work in slrn
#122082
Author: pholus
Date: Thu, 20 Mar 2003 05:22
34 lines
2266 bytes
On Thu, 20 Mar 2003 01:41:23 +0000, Dave <duffstuff@hotmail.com>
wrote:

>On Thu, 20 Mar 2003 01:11:41 GMT, Pholus wrote:
>
>> Well, I've managed to get slrn to connect and retrieve from my server, 
>> but I can't get any external editors to work, so no posting. I've tried 
>> vi and vim but when I try to post, I get the error "editor returned 
>> nonzero status" from both of them. I put the following line in slrn.rc:
>> set editor_command "vim '+set tw=72' %d %s -tmp
>
>[Snip]
>
>> Any ideas?
> 
>If that's a straight copy/paste from your .rc file, you're missing a " at
>the end. Also, I'm not sure if you need put '-tmp' in the commandline.
>

 No, it's not a straight copy/paste, just an omission on my part. The
end quote is there. Also, I removed the -tmp, still doesn't work. I'm
baffled. Just what does "editor returned nonzero status mean"?
Thanks for your help! (posted in agent because mozilla just keeps
barfing).

>From my slrn.rc file...
>
>set editor_command "vim '+set filetype=mail' +%d '%s'"
>
>... and from my .vimrc...
>
>au FileType mail set tw=74

Re: Can't get external editor to work in slrn
#122083
Author: Tiger
Date: Thu, 20 Mar 2003 05:54
23 lines
2270 bytes
On Thu, 20 Mar 2003 05:22:25 GMT, pholus <pholus@pholus.net> wrote:
> On Thu, 20 Mar 2003 01:41:23 +0000, Dave <duffstuff@hotmail.com>
> wrote:
> 
>> 
>>If that's a straight copy/paste from your .rc file, you're missing a " at
>>the end. Also, I'm not sure if you need put '-tmp' in the commandline.
>>
> 
>  No, it's not a straight copy/paste, just an omission on my part. The
> end quote is there. Also, I removed the -tmp, still doesn't work. I'm
> baffled. Just what does "editor returned nonzero status mean"?
> Thanks for your help! (posted in agent because mozilla just keeps
> barfing).
> 
Do you have vim installed?  Have you tried another editor?

-- 
Tiger
*Registered Linux User #279548
Mandrake 9.0
Fluxbox 0.1.14
Re: Can't get external editor to work in slrn
#122085
Author: Pholus
Date: Thu, 20 Mar 2003 06:29
23 lines
2098 bytes
On Thu, 20 Mar 2003 05:54:30 GMT, Tiger <jef@roaring.tiger.uncaged>
wrote:

>On Thu, 20 Mar 2003 05:22:25 GMT, pholus <pholus@pholus.net> wrote:
>> On Thu, 20 Mar 2003 01:41:23 +0000, Dave <duffstuff@hotmail.com>
>> wrote:
>> 
>>> 
>>>If that's a straight copy/paste from your .rc file, you're missing a " at
>>>the end. Also, I'm not sure if you need put '-tmp' in the commandline.
>>>
>> 
>>  No, it's not a straight copy/paste, just an omission on my part. The
>> end quote is there. Also, I removed the -tmp, still doesn't work. I'm
>> baffled. Just what does "editor returned nonzero status mean"?
>> Thanks for your help! (posted in agent because mozilla just keeps
>> barfing).
>> 
>Do you have vim installed?  Have you tried another editor?

Yes, vim is installed - Yes, I tried vi and emacs.. same result.
Still baffled.
Re: Can't get external editor to work in slrn
#122089
Author: Blinky the Shark
Date: Thu, 20 Mar 2003 06:53
27 lines
2082 bytes
Tiger wrote:

> On Thu, 20 Mar 2003 05:22:25 GMT, pholus <pholus@pholus.net> wrote:
>> On Thu, 20 Mar 2003 01:41:23 +0000, Dave <duffstuff@hotmail.com>
>> wrote:

>>>If that's a straight copy/paste from your .rc file, you're missing a " at
>>>the end. Also, I'm not sure if you need put '-tmp' in the commandline.

>>  No, it's not a straight copy/paste, just an omission on my part. The
>> end quote is there. Also, I removed the -tmp, still doesn't work. I'm
>> baffled. Just what does "editor returned nonzero status mean"?
>> Thanks for your help! (posted in agent because mozilla just keeps
>> barfing).

> Do you have vim installed?  Have you tried another editor?

Do you remember the subject of that thread, just a few days ago, where
several people pasted from their rc files on this?  Maybe one of those
(they weren't all identical) would work for this guy.

-- 
Blinky
Hot! New! Windows RG Released:  http://snurl.com/WinRG (SWF Req'd)
Real iMac Origin:   http://web.newsguy.com/dogfish/images/imac.jpg

Re: Can't get external editor to work in slrn
#122091
Author: Tiger
Date: Thu, 20 Mar 2003 07:52
30 lines
2709 bytes
On 20 Mar 2003 06:53:16 GMT, Blinky the Shark <no.spam@box.invalid> wrote:
> Tiger wrote:
> 
>> On Thu, 20 Mar 2003 05:22:25 GMT, pholus <pholus@pholus.net> wrote:
>>> On Thu, 20 Mar 2003 01:41:23 +0000, Dave <duffstuff@hotmail.com>
>>> wrote:
> 
>>>>If that's a straight copy/paste from your .rc file, you're missing a " at
>>>>the end. Also, I'm not sure if you need put '-tmp' in the commandline.
> 
>>>  No, it's not a straight copy/paste, just an omission on my part. The
>>> end quote is there. Also, I removed the -tmp, still doesn't work. I'm
>>> baffled. Just what does "editor returned nonzero status mean"?
>>> Thanks for your help! (posted in agent because mozilla just keeps
>>> barfing).
> 
>> Do you have vim installed?  Have you tried another editor?
> 
> Do you remember the subject of that thread, just a few days ago, where
> several people pasted from their rc files on this?  Maybe one of those
> (they weren't all identical) would work for this guy.
> 
http://snurl.com/zp4

-- 
Tiger
*Registered Linux User #279548
Mandrake 9.0
Fluxbox 0.1.14
Re: Can't get external editor to work in slrn
#122090
Author: Tiger
Date: Thu, 20 Mar 2003 07:53
34 lines
2661 bytes
On Thu, 20 Mar 2003 06:29:46 GMT, Pholus <pholus@pholus.net> wrote:
> On Thu, 20 Mar 2003 05:54:30 GMT, Tiger <jef@roaring.tiger.uncaged>
> wrote:
> 
>>On Thu, 20 Mar 2003 05:22:25 GMT, pholus <pholus@pholus.net> wrote:
>>> On Thu, 20 Mar 2003 01:41:23 +0000, Dave <duffstuff@hotmail.com>
>>> wrote:
>>> 
>>>> 
>>>>If that's a straight copy/paste from your .rc file, you're missing a " at
>>>>the end. Also, I'm not sure if you need put '-tmp' in the commandline.
>>>>
>>> 
>>>  No, it's not a straight copy/paste, just an omission on my part. The
>>> end quote is there. Also, I removed the -tmp, still doesn't work. I'm
>>> baffled. Just what does "editor returned nonzero status mean"?
>>> Thanks for your help! (posted in agent because mozilla just keeps
>>> barfing).
>>> 
>>Do you have vim installed?  Have you tried another editor?
> 
> Yes, vim is installed - Yes, I tried vi and emacs.. same result.
> Still baffled.

Try some of the configurations mentioned here:

http://snurl.com/zp4

-- 
Tiger
*Registered Linux User #279548
Mandrake 9.0
Fluxbox 0.1.14
Re: Can't get external editor to work in slrn
#122094
Author: ireneo.funes
Date: Thu, 20 Mar 2003 09:16
14 lines
1556 bytes
Thu, 20 Mar 2003 01:11:41 GMT, Pholus wrote:

> Well, I've managed to get slrn to connect and retrieve from my server, 
> but I can't get any external editors to work, so no posting. I've tried 
> vi and vim but when I try to post, I get the error "editor returned 
> nonzero status" from both of them. I put the following line in slrn.rc:
> set editor_command "vim '+set tw=72' %d %s -tmp

+%d      But you shouldn't get that error anyway. Does vim work properly
^        outside slrn? What does your .vimrc say?

-- 
less sucks more less than more: that's why we use more less and less more.
Re: Can't get external editor to work in slrn
#122096
Author: SINNER
Date: Thu, 20 Mar 2003 14:10
16 lines
2091 bytes
While strolling through news.software.readers, Pholus was overheard plotting:
>>Do you have vim installed?  Have you tried another editor?
> 
> Yes, vim is installed - Yes, I tried vi and emacs.. same result.
> Still baffled.

Wherever vim is installed, is it in your $PATH ? ie can you open a
command prompt anywhere, type vim and have it start? If not, that is your
problem. Either give the full path to vim your slrnrc or add the folder
to your path statement.

-- 
David
The entire CHINESE WOMEN'S VOLLEYBALL TEAM all share ONE personality --
and have since BIRTH!!
Re: Can't get external editor to work in slrn
#122101
Author: Pholus
Date: Thu, 20 Mar 2003 18:55
15 lines
1947 bytes
On Thu, 20 Mar 2003 14:10:03 +0000, SINNER wrote:

> While strolling through news.software.readers, Pholus was overheard plotting:
>>>Do you have vim installed?  Have you tried another editor?
>> 
>> Yes, vim is installed - Yes, I tried vi and emacs.. same result.
>> Still baffled.
> 
> Wherever vim is installed, is it in your $PATH ? ie can you open a
> command prompt anywhere, type vim and have it start? If not, that is your
> problem. Either give the full path to vim your slrnrc or add the folder
> to your path statement.
Yes, vim is in /usr/local/bin which is in the path and works fine outside
of slrn.
Re: Can't get external editor to work in slrn
#122102
Author: Pholus
Date: Thu, 20 Mar 2003 18:58
16 lines
1917 bytes
On Thu, 20 Mar 2003 09:16:52 +0000, ireneo.fune wrote:

> Thu, 20 Mar 2003 01:11:41 GMT, Pholus wrote:
> 
>> Well, I've managed to get slrn to connect and retrieve from my server, 
>> but I can't get any external editors to work, so no posting. I've tried 
>> vi and vim but when I try to post, I get the error "editor returned 
>> nonzero status" from both of them. I put the following line in slrn.rc:
>> set editor_command "vim '+set tw=72' %d %s -tmp
> 
> +%d      But you shouldn't get that error anyway. Does vim work properly
> ^        outside slrn? What does your .vimrc say?
vim works just fine outside slrn. Interestingly, 'which' shows no .vimrc
anywhere on the system. There is a .viminfo in my home directory, but it
just shows command history.
Re: Can't get external editor to work in slrn
#122106
Author: Blinky the Shark
Date: Thu, 20 Mar 2003 19:11
15 lines
1478 bytes
Pholus wrote:

> vim works just fine outside slrn. Interestingly, 'which' shows no .vimrc
> anywhere on the system. There is a .viminfo in my home directory, but it
> just shows command history.

If I'm not mistaken, which only looks on your PATH.  If so, it's not
saying that there's no .vimrc "anywhere on the system".

-- 
Blinky
Hot! New! Windows RG Released:  http://snurl.com/WinRG (SWF Req'd)
Real iMac Origin:   http://web.newsguy.com/dogfish/images/imac.jpg

Re: Can't get external editor to work in slrn
#122105
Author: Pholus
Date: Thu, 20 Mar 2003 20:00
13 lines
1721 bytes
On Thu, 20 Mar 2003 19:11:46 +0000, Blinky the Shark wrote:

> Pholus wrote:
> 
>> vim works just fine outside slrn. Interestingly, 'which' shows no .vimrc
>> anywhere on the system. There is a .viminfo in my home directory, but it
>> just shows command history.
> 
> If I'm not mistaken, which only looks on your PATH.  If so, it's not
> saying that there's no .vimrc "anywhere on the system".

 You are correct, it only searches the path. 'Find' also shows no .vimrc.
Re: Can't get external editor to work in slrn
#122108
Author: Blinky the Shark
Date: Thu, 20 Mar 2003 20:29
23 lines
1766 bytes
Pholus wrote:

> On Thu, 20 Mar 2003 19:11:46 +0000, Blinky the Shark wrote:

>> Pholus wrote:

>>> vim works just fine outside slrn. Interestingly, 'which' shows no .vimrc
>>> anywhere on the system. There is a .viminfo in my home directory, but it
>>> just shows command history.

>> If I'm not mistaken, which only looks on your PATH.  If so, it's not
>> saying that there's no .vimrc "anywhere on the system".

>  You are correct, it only searches the path. 'Find' also shows no .vimrc.

How about "locate"?

-- 
Blinky
Hot! New! Windows RG Released:  http://snurl.com/WinRG (SWF Req'd)
Real iMac Origin:   http://web.newsguy.com/dogfish/images/imac.jpg

Re: Can't get external editor to work in slrn
#122111
Author: Richard Hoskins
Date: Thu, 20 Mar 2003 22:29
27 lines
2171 bytes
"Pholus" <Pholus@pholus.net> writes:

> On Thu, 20 Mar 2003 19:11:46 +0000, Blinky the Shark wrote:
>
>> Pholus wrote:
>> 
>>> vim works just fine outside slrn. Interestingly, 'which' shows no .vimrc
>>> anywhere on the system. There is a .viminfo in my home directory, but it
>>> just shows command history.
>> 
>> If I'm not mistaken, which only looks on your PATH.  If so, it's not
>> saying that there's no .vimrc "anywhere on the system".
>
>  You are correct, it only searches the path. 'Find' also shows no .vimrc.

Only searches for shell commands, not files.  i.e. executables and builtins.
Use locate, or find for files.

If you have a .vimrc it will be in $HOME.  You might have a vimrc in
/usr/share/vim or /etc, but you might not.

-- 
  <----- pull hard in this direction  __
                                     /  |--
====================================|   |
                                     \__|--
Re: Can't get external editor to work in slrn
#122110
Author: Mike Vanecek
Date: Thu, 20 Mar 2003 22:30
20 lines
1445 bytes
On Thu, 20 Mar 2003 01:11:41 GMT, Pholus wrote:
> Well, I've managed to get slrn to connect and retrieve from my server, 
> but I can't get any external editors to work, so no posting. I've tried 
> vi and vim but when I try to post, I get the error "editor returned 
> nonzero status" from both of them. I put the following line in slrn.rc:
> set editor_command "vim '+set tw=72' %d %s -tmp

On my RH 7.1 setup, I have

set editor_command "vim -f '+set tw=72' +%d '%s'"
set mail_editor_command "vim -f  '+set tw=72' +%d '%s'"
set post_editor_command "vim -f  '+set tw=72' +%d '%s'"
set score_editor_command "vim -f '+set tw=72' +%d '%s'"

This working for me, maybe it will help?

[snip]

 
Re: Can't get external editor to work in slrn
#122119
Author: Pholus
Date: Fri, 21 Mar 2003 04:29
20 lines
1737 bytes
On 20 Mar 2003 16:30:59 -0600, Mike Vanecek <MikeV99@privacy.net>
wrote:

 
>On my RH 7.1 setup, I have
>
>set editor_command "vim -f '+set tw=72' +%d '%s'"
>set mail_editor_command "vim -f  '+set tw=72' +%d '%s'"
>set post_editor_command "vim -f  '+set tw=72' +%d '%s'"
>set score_editor_command "vim -f '+set tw=72' +%d '%s'"
>
>This working for me, maybe it will help?
>
>[snip]
>
> 
Well, I tried it with the -f, still no go. Same error  message. I
think 'll give up on slrn and just stick with pan or agent for now.
Thanks for your help.
Re: Can't get external editor to work in slrn
#122118
Author: Pholus
Date: Fri, 21 Mar 2003 07:53
33 lines
1688 bytes
On Thu, 20 Mar 2003 01:11:41 GMT, Pholus <pholus@pholus.net> wrote:

> but I can't get any external editors to work, so no posting. I've tried 
> vi and vim but when I try to post, I get the error "editor returned 
> nonzero status" from both of them. I put the following line in slrn.rc:
> set editor_command "vim '+set tw=72' %d %s -tmp
> I'm not sure what the problem is, or what to do about it. I tried 

 O.K., I got working by commenting out the set_editor command and using 
 the SLRN_EDITOR environment variable instead.
 I have no idea why that works, but it does.
 Thanks everyone for your help



> 












> 


> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads