🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #10663

Re: Problem with nn and ed

#10663
From: Michael T Pins
Date: Fri, 25 Mar 2005 07:23
48 lines
2568 bytes
Arctic Fidelity <spam@sacrificumdeo.net> writes:

>Now, first off, don't laugh, I have my reasons, okay? :-)

What, pray tell, stops you from using vi?

>Second, I'm using the "ed" editor right now, and when I try to use it in
>combination with the wonderful nn newsreader, I have a problem. I
>suppose it has something to do with the way the nn program calls the ed
>commands, but I get the following error:

>WAIT+n: No such file or directory

>"n" is some integer, most likely a line number, from what I can tell.

>And I am then dropped into the editor. However, while the editor does in
>fact edit the right file, nn will not post the article. :-/ 

>I am supposing that this has something to do with line numbers and
>"starting on the right line" or such. I'm looking for a way to disable
>this behaviour to test this hypothesis.

:unset use-editor-line

nn calls the editor with the following syntax:

<editor_program> (+linenum) <tempfile>

skipping the (+linenum) if use-editor-line isn't set.

So for example, when using vi it will look something like:

vi +6 /var/tmp/nn.hIaOxA

and if use-editor-line isn't set:

vi /var/tmp/nn.hIaOxA

If nn isn't posting the message, it doesn't believe that the tempfile has
been modified (it compares it to a copy it made before it dropped you into
the editor).  This check can be turned off by unsetting the variable
edit-response-check, but in general doing so is a bad idea.

-- 
Michael T Pins              |	"We're dealing with a country (Iraq) that
mtpins@nndev.org            |	can really finance its own reconstruction,
keeper of the nn sources    |	and relatively soon."
ftp://ftp.nndev.org/pub     |		- Paul Wolfowitz, 3/27/03
Technical Details
Message-ID: <1147f4a7rotsv2b@corp.supernews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!tethys.csu.net!nntp.csufresno.edu!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!mtpins
References: <dsmdnZ2ppbEeHd7fRVn-pA@gvtc.com>

Show Full Headers
Complete Article Headers
Message-ID: <1147f4a7rotsv2b@corp.supernews.com>
Subject: Re: Problem with nn and ed
Date: Fri, 25 Mar 2005 07:23:54 -0000
From: Michael T Pins <mtpins@nndev.org>
References: <dsmdnZ2ppbEeHd7fRVn-pA@gvtc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!tethys.csu.net!nntp.csufresno.edu!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!mtpins
Newsgroups: news.software.nn
Organization: Posted via Supernews, http://www.supernews.com
User-Agent: nn/6.7.alpha
X-Complaints-To: abuse@supernews.com
Lines: 48