Thread View: news.software.nn
6 messages
6 total messages
Started by Arctic Fidelity
Fri, 25 Mar 2005 03:07
Problem with nn and ed
Author: Arctic Fidelity
Date: Fri, 25 Mar 2005 03:07
Date: Fri, 25 Mar 2005 03:07
26 lines
2009 bytes
2009 bytes
Now, first off, don't laugh, I have my reasons, okay? :-) 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. Is there any other possibility? - Arctic Fidelity -- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth
Re: Problem with nn and ed
Author: Michael T Pins
Date: Fri, 25 Mar 2005 07:23
Date: Fri, 25 Mar 2005 07:23
48 lines
2568 bytes
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
Re: Problem with nn and ed
Author: Arctic Fidelity
Date: Fri, 25 Mar 2005 15:51
Date: Fri, 25 Mar 2005 15:51
25 lines
2045 bytes
2045 bytes
Michael T Pins <mtpins@nndev.org> writes: >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? Hehe, nothing, really, I just thought I would go on a little stint and learn ed again. I'm actually getting to be pretty fast with it. It's not a bad editor at all. ;-) >:unset use-editor-line Yes, I figured this out shortly after posting to this group. The one thing I was wondering, was whether it would be possible to change this without editing the source? Is there a "flag setting" or something that would allow an user to change the method of specifying line numbers? I know this would help on some of my other editors that I use. - Arctic Fidelity -- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth
Re: Problem with nn and ed
Author: Michael T Pins
Date: Fri, 25 Mar 2005 17:14
Date: Fri, 25 Mar 2005 17:14
31 lines
2149 bytes
2149 bytes
Arctic Fidelity <spam@sacrificumdeo.net> writes: >Michael T Pins <mtpins@nndev.org> writes: >>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? >Hehe, nothing, really, I just thought I would go on a little stint >and learn ed again. I'm actually getting to be pretty fast with it. >It's not a bad editor at all. ;-) >>:unset use-editor-line >Yes, I figured this out shortly after posting to this group. The one thing >I was wondering, was whether it would be possible to change this without >editing the source? Is there a "flag setting" or something that would >allow an user to change the method of specifying line numbers? I know >this would help on some of my other editors that I use. ??? use-editor-line is a run-time variable, you can set and unset it on the fly, or unset it in your init file if want it to stay off. -- 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
Re: Problem with nn and ed
Author: Arctic Fidelity
Date: Fri, 25 Mar 2005 22:16
Date: Fri, 25 Mar 2005 22:16
24 lines
2218 bytes
2218 bytes
Michael T Pins <mtpins@nndev.org> writes: >??? >use-editor-line is a run-time variable, you can set and unset it on the >fly, or unset it in your init file if want it to stay off. Aaah, sorry, I was not clear. What I was wondering, was if there was a way to specify the syntax used by nn to tell the external editor what line to start on. I've known some programs that do not use the "+NN" syntax, but rather use another option such as "-L%n" or such. It would be nice for nn to be able to use a different "line specifier" in case I wanted to use a program that did support jump- ing to a line, but that used a different command line format. One example I could think of is Boxer. Is there a way to get the nn program to use "B -Ln filename" rather than "B +n filename"? Other than source editing, that is. - Arctic Fidelity -- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth
Re: Problem with nn and ed
Author: Michael T Pins
Date: Sat, 26 Mar 2005 05:12
Date: Sat, 26 Mar 2005 05:12
23 lines
2015 bytes
2015 bytes
Arctic Fidelity <spam@sacrificumdeo.net> writes: >Michael T Pins <mtpins@nndev.org> writes: >>??? >>use-editor-line is a run-time variable, you can set and unset it on the >>fly, or unset it in your init file if want it to stay off. >Aaah, sorry, I was not clear. What I was wondering, was if there was >a way to specify the syntax used by nn to tell the external editor >what line to start on. I've known some programs that do not use the >"+NN" syntax, but rather use another option such as "-L%n" or such. >It would be nice for nn to be able to use a different "line >specifier" in case I wanted to use a program that did support jump- >ing to a line, but that used a different command line format. Ah. No, there isn't a way to have nn use anything but +NN. -- 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
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