🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #203789

Re: [slrn] Editor will not be found in cygwin-slrn

#203789
From: Frank Slootweg
Date: Tue, 14 Aug 2007 20:36
75 lines
3779 bytes
Thomas Wiegner <wiegner@gmx.de> wrote:
> Hi,
> 
> On Mon, 13 Aug 2007, frydd <frydd@spamfence.net> wrote:
> 
> > from http://www.foory.de/thw/slrn/packages/slrn_with_included_cygwin.zip
> > I installed slrn on a WinXP-machine. slrn works for fetching and
> > reading news. But if I try 2 make a followup or create a new post,
> > slrn says "Editor will not be found".
> 
> Hmm, this is really something I forgot to test, when I bundled this
> package.
> 
> > In slrnrc I tried:
> >
> > "/cygdrive/d:/slrn/edit.exe %s"
> > "/cygdrive/d/slrn/edit.exe %s"
> > "cygdrive/d:/slrn/edit.exe %s"
> > "cygdrive/d/slrn/edit.exe %s"
> > "d:/slrn/edit.exe %s"
> > "d/slrn/edit.exe %s"
> > "edit.exe %s"
> 
> Perhaps just for all the others, who asked why the heck you take the
> edit.exe command from windows. IMHO it makes sense to do that, because 
> I tried to bundle the minimum required cygwin DLLs, so that there is no
> need to install cygwin. So of course one might take his favorite
> windows editor.
> 
> > What is the proper syntax?
> 
> Are you sure it is edit.exe? In my windows it is edit.com? 
> What worked for me was to copy the edit.com to the slrn directory,
> rename it to slrn.exe and set the editor command to "edit %s"

  You mean "rename it to edit.exe" (not "slrn.exe"), don't you? Just
checking.

> This will call the editor but unfortunatly this won't work either,
> because the path to the follow-up article will be a "unix" path,
> which edit.exe does not understand.

  I had a similar problem for my stand-alone tin package [1]. Therefor,
I put this tidbit in the README.txt file (and included basename.exe in
the package):

<quote>

vi editor:
----------
The included vi.exe file is a non-Cygwin version of the vim editor.
Because that version does not understand Cygwin format
/cygdrive/c/<path> paths, basename(1) has to be used to strip off
everthing but the filename. So in .tin\tinrc change:
default_editor_format=%E %N %F
to:
default_editor_format=vi +%N `basename %F`
(note back-quotes before basename and after %F)

Notepad editor:
---------------
You can also use the (MS-Windows) Notepad editor instead of vi, but that
will put the cursor at the top, instead of, as it should, just below the
attribution line. You should set .tin\tinrc to:
default_editor_format=notepad `basename %F`

</quote>

  This basename(1) 'trick' should work for any editor and I assume that
slrn can also handle the `basename ...` construct in its variables.

  I hope this helps.

[1] See <ftp://ftp.tin.org/pub/news/clients/tin/binaries/win32>, files
README and tin-1.6.2.sa.zip
Technical Details
Message-ID: <46c21235$0$64869$dbd4b001@news.wanadoo.nl>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news2.euro.net!postnews2.euro.net!news.wanadoo.nl!not-for-mail
References: <1186992267.230503.9200@q75g2000hsh.googlegroups.com> <cv79p4-l04.ln1@wiegner.user.individual.de>

Show Full Headers
Complete Article Headers
Message-ID: <46c21235$0$64869$dbd4b001@news.wanadoo.nl>
Subject: Re: [slrn] Editor will not be found in cygwin-slrn
Date: Tue, 14 Aug 2007 20:36:05 +0000
From: Frank Slootweg <this@ddress.is.invalid>
References: <1186992267.230503.9200@q75g2000hsh.googlegroups.com> <cv79p4-l04.ln1@wiegner.user.individual.de>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news2.euro.net!postnews2.euro.net!news.wanadoo.nl!not-for-mail
Newsgroups: news.software.readers
Organization: NOYB
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX)
 (CYGWIN_NT-5.1/1.5.22(0.156/4/2) (i686)) Hamster/2.0.2.2
Lines: 75
NNTP-Posting-Date: 14 Aug 2007 20:36:05 GMT
NNTP-Posting-Host: cd44074f3.cable.wanadoo.nl
X-Trace: 1187123765 dr6.euro.net 64869 212.64.116.243:63259
X-Complaints-To: abuse@wanadoo.nl