🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2030

Re: nn passing file to emacs question

#2030
From: Milt Epstein
Date: Tue, 27 Aug 1991 20:48
34 lines
2369 bytes
In <28BA7AA3.2290@ibma0.cs.uiuc.edu> epstein@sunc2.cs.uiuc.edu (Milt Epstein) writes:

>Looking at the nn man page, I notice the following section:
>
>     Generally, nn will construct a file with a suitable  header,
>     optionally  include  a  copy of the article in the file with
>     each non-empty line prefixed by a `>' character  (except  in
>     mail  mode),  and invoke an editor of your choice (using the
>     EDITOR environment variable) on this file,  positioning  you
>     on  the  first  line of the body of the article (if it knows
>     the editor).
>
>The part of interest is that last part, about nn position the editor
>on the first line of the body of the article.  I would like to know
>exactly how nn does this (with emacs in particular).  The problem is
>that I have changed some stuff in my .emacs that seems to be defeating
>this behavior, and I would like to try to restore it.  (I've added a
>find-file-hook that does a couple of things when it sees that it's
>editing an nn related file.)
>
>Thanks for your help.

Actually, I've discovered that the problem has to do not with changes
in my .emacs, but the fact that my EDITOR environment variable now
points to a script I wrote that calls emacs internally (I set it up
that way so I could specify a command line option to emacs).  So, I
guess I woul add the additional question, how does nn know what editor
is being called?

-- 
Milt Epstein
Department of Computer Science
University of Illinois
epstein@cs.uiuc.edu
Technical Details
Message-ID: <28BABAA3.8A1@ibma0.cs.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!math.fu-berlin.de!ox.com!yale.edu!qt.cs.utexas.edu!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!roundup.crhc.uiuc.edu!m.cs.uiuc.edu!ibma0.cs.uiuc.edu!sunc2.cs.uiuc.edu!epstein
References: <28BA7AA3.2290@ibma0.cs.uiuc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <28BABAA3.8A1@ibma0.cs.uiuc.edu>
Subject: Re: nn passing file to emacs question
Date: Tue, 27 Aug 1991 20:48:35 +0000
From: epstein@sunc2.cs.uiuc.edu (Milt Epstein)
References: <28BA7AA3.2290@ibma0.cs.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!math.fu-berlin.de!ox.com!yale.edu!qt.cs.utexas.edu!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!roundup.crhc.uiuc.edu!m.cs.uiuc.edu!ibma0.cs.uiuc.edu!sunc2.cs.uiuc.edu!epstein
Newsgroups: news.software.nn
Keywords: nn editor emacs
Sender: news@ibma0.cs.uiuc.edu
Reply-To: epstein@cs.uiuc.edu
Organization: University of Illinois at Urbana-Champaign
Lines: 34