Path: utzoo!mnetor!uunet!mcvax!cernvax!ethz!heiser
From: heiser@ethz.UUCP (Gernot Heiser)
Newsgroups: comp.emacs
Subject: Setting terminal-emulator's environment
Message-ID: <261@bernina.UUCP>
Date: 5 Dec 87 13:42:37 GMT
Reply-To: heiser@ethz.UUCP (Gernot Heiser)
Organization: ETH Zuerich, Switzerland
Lines: 18
Keywords: GNU Emacs function `terminal-emulator'


Using the  GNU emacs terminal-emulator   to run interactive  programs  would be
quite limited if the parent emacs  can't be used  for editing (when the program
run under the emulator starts up an editor).  While some  programs  (like `rn')
allow to explicitely specify the  editor, a general  solution would require  to
specify `emacsclient'  in the `EDITOR'   environment  variable of  the  process
running under the terminal emulator.

Naturally this could be done by running  the  shell under the emulator, setting
the   environment of  the shell, and  then running   the program  we are really
interested  in.  A  better way  would be    to set  the   environment from  the
`terminal-mode-hook'. Is there any means to achieve this???? (I'm running GNU
Emacs version 18.49.)
-- 
Gernot Heiser                   Phone:       +41 1/256 23 48
Integrated Systems Laboratory   CSNET/ARPA:  heiser%ifi.ethz.ch@relay.cs.net
ETH Zuerich                     EARN/BITNET: GRIDFILE@CZHETH5A
CH-8092 Zuerich, Switzerland    EUNET/UUCP:  {uunet,...}!mcvax!ethz!heiser