🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
7 messages
7 total messages Started by Richard Steinberger Wed, 14 Aug 1991 23:00
nn's use of editor: emacs
#1988
Author: Richard Steinberger
Date: Wed, 14 Aug 1991 23:00
16 lines
1223 bytes
	We recently upgraded GNU emacs so that it no comes up in a 
separate X window (unless the -nw option is entered on the emacs
invocation command line).  As a result, when I use an editor in
nn, I get a emacs within an X window.  This is because EDITOR is set
to emacs which now comes up in its default X window mode.

	I would like to have nn be able to cause emacs to come up
in the same window that nn is running in, not a separate X window.
Does anyone know how to do this?  Thanks in advance for any 
suggestions.

regards,

	ric steinberger
	ric@updike.sri.com
Re: nn's use of editor: emacs
#1991
Author: Glenn R. Stone
Date: Thu, 15 Aug 1991 16:47
12 lines
1125 bytes
In <27176@unix.SRI.COM> ric@updike.sri.com (Richard Steinberger) writes:
>	I would like to have nn be able to cause emacs to come up
>in the same window that nn is running in, not a separate X window.
>Does anyone know how to do this?  Thanks in advance for any 
>suggestions.

Yep.  Have nn invoke emacs as "emacs -nw [options]".... "-nw" is
No Windows, i.e. run emacs under curses rather than X.  
This is probably best done with "set editor" in .nn/init...
Exercise to the reader as to exact implementation.

-- Glenn R. Stone (gs26@prism.gatech.edu)
Re: nn's use of editor: emacs
#1987
Author: Tom Barron
Date: Thu, 15 Aug 1991 20:34
19 lines
1431 bytes
ric@updike.sri.com (Richard Steinberger) writes:


>	We recently upgraded GNU emacs so that it no comes up in a 
>separate X window (unless the -nw option is entered on the emacs
>invocation command line).  As a result, when I use an editor in
>nn, I get a emacs within an X window.  This is because EDITOR is set
>to emacs which now comes up in its default X window mode.

>	I would like to have nn be able to cause emacs to come up
>in the same window that nn is running in, not a separate X window.
>Does anyone know how to do this?  Thanks in advance for any 
>suggestions.

Could you set EDITOR to "emacs -nw"?
-- 
| Tom Barron                                     tob@raider.raidernet.com |
| Technology Group                               CIS:  70700,3044         |
| ENVOY Coporation                               voice: (615) 872-4867    |
Re: nn's use of editor: emacs
#1994
Author: Milt Epstein
Date: Sat, 17 Aug 1991 22:47
45 lines
2693 bytes
In <93@raider.RAIDERNET.COM> tob@raider.RAIDERNET.COM (Tom Barron) writes:

>ric@updike.sri.com (Richard Steinberger) writes:
>
>>	We recently upgraded GNU emacs so that it no comes up in a 
>>separate X window (unless the -nw option is entered on the emacs
>>invocation command line).  As a result, when I use an editor in
>>nn, I get a emacs within an X window.  This is because EDITOR is set
>>to emacs which now comes up in its default X window mode.
>
>>	I would like to have nn be able to cause emacs to come up
>>in the same window that nn is running in, not a separate X window.
>>Does anyone know how to do this?  Thanks in advance for any 
>>suggestions.
>
>Could you set EDITOR to "emacs -nw"?

Do you mean the EDITOR environment variable or nn's EDITOR variable?
Probably both would work, but I just wanted to relate my experience
when I tried to do this.

I am not the original poster, but I have basically the same problem --
I would like to have emacs not start up in its own window.  So, I have
"emacs" (and "e") aliased to "emacs -nw" -- that controls whenever I
call emacs myself.  I also tried putting the following in my .login:

     setenv EDITOR "<path-to-emacs> -nw"

in the hopes that that would control it from mail or nn (or other
programs that use this variable).  Now, this does what I want it to do
on the Suns I use (running SunOS 4.1.1, I believe), but not on an IBM
RS6000 I use -- nn works fine with this, but the mail there (just
regular mail) doesn't like it -- it complains about "a file or
directory in the path name does not exist".

Now it would be nice if there was some way to control how emacs starts
up, in terms of a environment variable or such.  I realize this is
more of an emacs (or perhaps RS6000) issue than an nn issue, so I will
ask the appropriate questions over in the appropriate newsgroups.

-- 
Milt Epstein
Department of Computer Science
University of Illinois
epstein@cs.uiuc.edu
Re: nn's use of editor: emacs
#1995
Author: Michael Elbel
Date: Mon, 19 Aug 1991 08:34
22 lines
1503 bytes
In <34872@hydra.gatech.EDU> gs26@prism.gatech.EDU (Glenn R. Stone) writes:

>In <27176@unix.SRI.COM> ric@updike.sri.com (Richard Steinberger) writes:
>>	I would like to have nn be able to cause emacs to come up
>>in the same window that nn is running in, not a separate X window.
>>Does anyone know how to do this?  Thanks in advance for any 
>>suggestions.

>Yep.  Have nn invoke emacs as "emacs -nw [options]".... "-nw" is
>No Windows, i.e. run emacs under curses rather than X.  
>This is probably best done with "set editor" in .nn/init...
>Exercise to the reader as to exact implementation.

If you are running emacs in a separate window anyway, why not
just use emacsclient to edit the article in an already running
emacs?

Michael
--
Michael Elbel 			|  Wollen haetten wir schon moegen
PCS GmbH, Muenchen, Germany	|  aber duerfen haben wir uns nicht getraut.
   me@dude.pcs.com 		|  - Karl Valentin
Re: nn's use of editor: emacs
#1996
Author: John Nemeth
Date: Mon, 19 Aug 1991 09:11
26 lines
1802 bytes
In article <93@raider.RAIDERNET.COM> tob@raider.RAIDERNET.COM (Tom Barron) writes:
>ric@updike.sri.com (Richard Steinberger) writes:
>
>>	I would like to have nn be able to cause emacs to come up
>>in the same window that nn is running in, not a separate X window.
>>Does anyone know how to do this?  Thanks in advance for any 
>>suggestions.
>
>Could you set EDITOR to "emacs -nw"?

     If you mean the environment variable, EDITOR, then no.  This
variable is supposed to contain a filename only.  Many programs will
do something like this to invoke an editor:

    ...
    ...fork()...
    ...
    execlp(getenv("EDITOR"), ...
    ...

If you put an option in EDITOR, you will make it so that many programs
will not be able to invoke the editor.  
--
John Nemeth                                                   jnemeth@cue.bc.ca
System Administrator                                {uw-beaver,ubc-cs,ssc-vax}!
Computer Using Educators of B.C.                            uvicctr!cue!jnemeth
Re: nn's use of editor: emacs
#2010
Author: Bill Wohler
Date: Tue, 20 Aug 1991 14:57
20 lines
1224 bytes
ric@updike.sri.com (Richard Steinberger) writes:
>	I would like to have nn be able to cause emacs to come up
>in the same window that nn is running in, not a separate X window.

  first, the separate x window is faster and you can use the mouse to
  do things, but if you really want to run emacs in an xterm...

  if you can't run emacs with the -nw argument, then you could unset
  your DISPLAY environment variable (in sh and csh):

	$ unset DISPLAY
	% unsetenv DISPLAY

  just out of curiousity, which group are you in, richard?

-- 
						--bw
-----
Bill Wohler <wohler@sap-ag.de> <sapwdf!wohler>
Heidelberg Red Barons Ultimate Frisbee Team
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