Thread View: news.software.nn
3 messages
3 total messages
Started by John Gordon
Thu, 27 Sep 1990 15:39
:w invalidates posting?
Author: John Gordon
Date: Thu, 27 Sep 1990 15:39
Date: Thu, 27 Sep 1990 15:39
13 lines
1263 bytes
1263 bytes
Several times I have been (f)ollowing up to an article, or (w)riting
a letter to the author of an article, and I do a :w from vi to save the text,
and when I finish, nn gives me a "message not sent" message when i ZZ the
letter and hit 's' and <Enter>. Anyone know why this happens? It's not a big
problem, but still I'd like to know......Thanks.
---
John Gordon
Internet: gordon@osiris.cso.uiuc.edu #include <disclaimer.h>
gordon@cerl.cecer.army.mil #include <clever_saying.h>
GEnie: j.gordon14
Re: :w invalidates posting?
Author: Anthony Murdoch
Date: Fri, 28 Sep 1990 07:07
Date: Fri, 28 Sep 1990 07:07
21 lines
1766 bytes
1766 bytes
gordon@osiris.cso.uiuc.edu (John Gordon) writes: > Several times I have been (f)ollowing up to an article, or (w)riting >a letter to the author of an article, and I do a :w from vi to save the text, >and when I finish, nn gives me a "message not sent" message when i ZZ the >letter and hit 's' and <Enter>. Anyone know why this happens? It's not a big >problem, but still I'd like to know......Thanks. I'm just guessing, but it might be that the software believes that the article you were editing was unchanged (it was unchanged since the last save). This is considered unacceptable by the software and so it doesn't post the article. Try making an edit (eg delete a line and then undo "ddu") after your ":w" and see if it posts it then. ant -- V ant "It's great to be young and insane" \o/ ant@brolga.cc.uq.oz.au - Dream Team -O- Anthony Murdoch Prentice Computer Centre /0\ Phone (07) 3774078 University of Qld
Re: :w invalidates posting?
Author: Rob Lemley
Date: Fri, 28 Sep 1990 18:57
Date: Fri, 28 Sep 1990 18:57
26 lines
1861 bytes
1861 bytes
In <1990Sep27.153936.8403@ux1.cso.uiuc.edu> gordon@osiris.cso.uiuc.edu (John Gordon) writes:
> Several times I have been (f)ollowing up to an article, or (w)riting
>a letter to the author of an article, and I do a :w from vi to save the text,
>and when I finish, nn gives me a "message not sent" message when i ZZ the
>letter and hit 's' and <Enter>.
I have had similar problems with vi when it is forked from another process.
Apparently vi sends non-zero status codes back to the invoking program
frequently. I often hit interrupt (control-c) in vi to cancel commands
and this also seems to get passed back to the calling program. From a
casual check of the nn source, it appears that non-zero exit status from
the editor will cause the send or post to not be sent.
I have implemented a shell script which I use to get around the problem.
I put the script in my $HOME/bin, put $HOME/bin first in my PATH, and set
all of my editor environment variable to $HOME/bin/vi (EDITOR, VISUAL, etc.).
Here it is:
--------------------- Cut Here --------------------------------------------
:
#
# vi -- execute vi and always return 0
#
trap "trap '' 2" 2 # ignore interrupts during vi
/usr/bin/vi ${1+"$@"}
exit 0
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