Re: tin: article stubs one line short

Liste des GroupesRevenir à ns readers 
Sujet : Re: tin: article stubs one line short
De : anton.txt (at) *nospam* gmail.moc (Anton Shepelev)
Groupes : news.software.readers
Date : 20. Sep 2024, 17:23:46
Autres entêtes
Organisation : To protect and to server
Message-ID : <vck7ih$1kifu$1@paganini.bofh.team>
References : 1 2
User-Agent : tin/2.6.3-20231224 ("Banff") (FreeBSD/14.1-RELEASE (amd64))
VanguardLH <V@nguard.lh> wrote:
Anton Shepelev <anton.txt@gmail.moc> wrote:
 
When I post a new message in Tin 2.6.3, after I enter the subject
and press Enter, Tin generates the "stub" of a new article and opens
it in my editor (nvi) with `+7', which complains:
 
   -c option, 1: illegal address: only 6 lines in the file
 
And indeed, there are only six lines in the generated file:
 
--------------------------------- Cut ----------------------------------
From: Anton Shepelev <anton.txt@gmail.moc>
Subject: Russian encodings KOI8-RU and KOI8-R
Newsgroups: misc.test
Summary:
Keywords:
 
--------------------------------- Cut ----------------------------------
 
whereas I think there should be seven, because one empty line
separates the headers from the body, and one begins the body.  It
is rather unlikely that the error should be in Tin, but perhaps
something is wrong in my environment preventing the second empty
line in the generated stubs?
 
I used the following primitive wrapper script to log the process:
 
--------------------------------- Cut ----------------------------------
echo $* >> ~/invoke.txt
cp $2 ~/art.txt
vi $*
--------------------------------- Cut ----------------------------------
 
Haven't been a *NIX user for decades,

Well, both `tin' and `vim' are available on Windows and Mac OS X.

but you sure the error is generated by tin, and not by nvi? 

I wrote that the error message quoted above is from `nvi', but it
indicates that `tin' may be invokig it incorrectly /or/ generating
an incorrect stub for the article.

You say tin opens the editor, and then you see the error which makes
it appear the editor issues the error.

It does, and I have reproduced the error by calling

  >nvi +7 6l.txt

where 6l.txt is a file with six lines.

Tried getting tin to switch to vim as the editor?

The classic `vi' is the standard editor on my system, but I have
installed vim and tested with it, and there is no error message.
`tin', however, inokes the configured editor with +7 even though
the pre-generated file has only six lines.  Both the editors move
the cursor to the last (sixsth) line of the file, but `nvi'
additionally issues an error message, whereas `vim' stays quiet.
I think `nvi' is correct here, because it is asked to position the
cursor on the senventh line in a six-line file.

It is not a bug in the editor, because regarless of the editor `tin'
2.6.3 on FreeBSD 14.1 pre-generates an article with /only one/ empty
line at the end instead of two.  `tin' 2.6.2 (on a remote system I
use) pre-genenerates articles with two empty lines at the end. I
think it is an error in `tin' 2.6.3.  Or can this have been changed
intentionally?

Date Sujet#  Auteur
19 Sep 24 * tin: article stubs one line short24Anton Shepelev
20 Sep 24 +* Re: tin: article stubs one line short21VanguardLH
20 Sep 24 i`* Re: tin: article stubs one line short20Anton Shepelev
21 Sep 24 i +* Re: tin: article stubs one line short2VanguardLH
21 Sep 24 i i`- Re: tin: article stubs one line short1Anton Shepelev
21 Sep 24 i `* Re: tin: article stubs one line short17Urs Janßen
21 Sep 24 i  +* Re: tin: article stubs one line short9Anton Shepelev
21 Sep 24 i  i+- Re: tin: article stubs one line short1Urs Janßen
21 Sep 24 i  i`* Re: tin: article stubs one line short7Joerg Mertens
21 Sep 24 i  i `* Re: tin: article stubs one line short6Joerg Mertens
21 Sep 24 i  i  +* Re: tin: article stubs one line short3Anton Shepelev
21 Sep 24 i  i  i`* Re: tin: article stubs one line short2Joerg Mertens
21 Sep 24 i  i  i `- Re: tin: article stubs one line short1Anton Shepelev
21 Sep 24 i  i  `* vi: silence Invalid range with +n (was: tin: article stubs one line short)2Urs Janßen
21 Sep 24 i  i   `- Re: vi: silence Invalid range with +n1Anton Shepelev
21 Sep 24 i  +- Re: tin: article stubs one line short1Anton Shepelev
21 Sep 24 i  `* Re: tin: article stubs one line short6Anton Shepelev
22 Sep 24 i   `* Re: tin: article stubs one line short5Urs Janßen
22 Sep 24 i    `* Re: tin: article stubs one line short4Anton Shepelev
22 Sep 24 i     `* Re: tin: article stubs one line short3Urs Janßen
22 Sep 24 i      +- Re: tin: article stubs one line short1Anton Shepelev
22 Sep 24 i      `- Re: tin: article stubs one line short1Anton Shepelev
20 Sep 24 `* Re: tin: article stubs one line short2John McCue
20 Sep 24  `- Re: tin: article stubs one line short1Anton Shepelev

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal