🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #203847

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

#203847
From: Thomas Wiegner
Date: Thu, 16 Aug 2007 07:02
49 lines
2937 bytes
On 2007-08-14, Frank Slootweg <this@ddress.is.invalid> wrote:

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

Ups, that was a typo, right. edit.exe is right.

>> 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.

Thanks, for that hint, I'll check that. But I think one has to 
make some tricks with the $HOME or the $TMP variables, because
slrn will try to edit the article either in the $HOME or in the
$TMP directory. 

Cheers,

 Thomas
Technical Details
Message-ID: <slrnfc7tk0.2ac.wiegner@mhhb6k6c.ww200.siemens.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed1.sbs.de!news.mch.sbs.de!not-for-mail
References: <1186992267.230503.9200@q75g2000hsh.googlegroups.com> <cv79p4-l04.ln1@wiegner.user.individual.de> <46c21235$0$64869$dbd4b001@news.wanadoo.nl>

Show Full Headers
Complete Article Headers
Message-ID: <slrnfc7tk0.2ac.wiegner@mhhb6k6c.ww200.siemens.net>
Subject: Re: [slrn] Editor will not be found in cygwin-slrn
Date: Thu, 16 Aug 2007 07:02:24 +0000
From: Thomas Wiegner <wiegner@gmx.de>
References: <1186992267.230503.9200@q75g2000hsh.googlegroups.com> <cv79p4-l04.ln1@wiegner.user.individual.de> <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!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed1.sbs.de!news.mch.sbs.de!not-for-mail
Newsgroups: news.software.readers
Organization: Siemens Business Services
Lines: 49
NNTP-Posting-Host: 10.148.29.207
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: daniel-new.mch.sbs.de 1187247744 3838 10.148.29.207 (16 Aug 2007
X-Complaints-To: abuse@siemens.de
NNTP-Posting-Date: Thu, 16 Aug 2007 07:02:24 +0000 (UTC)
User-Agent: slrn/0.9.8.1pl2.1 (CYGWIN_NT-5.1)