changeset 74055:217e6137471a

(Interactive Shell): INSIDE_EMACS is set to t, and EMACS is deprecated.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 18 Nov 2006 21:00:16 +0000
parents 8f7659d1566e
children 8580dcf86c2c
files man/misc.texi
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/man/misc.texi	Sat Nov 18 20:59:10 2006 +0000
+++ b/man/misc.texi	Sat Nov 18 21:00:16 2006 +0000
@@ -486,12 +486,16 @@
 @kbd{C-x @key{RET} p} in the shell buffer.  @xref{Communication
 Coding}.
 
+@cindex @env{INSIDE_EMACS} environment variable
+  Emacs sets the envitonment variable @env{INSIDE_EMACS} to @code{t}
+in the subshell.  Programs can check this variable to determine
+whether they are running inside an Emacs subshell.
+
 @cindex @env{EMACS} environment variable
-  Unless the environment variable @env{EMACS} is already defined,
-Emacs defines it in the subshell, with value equal to Emacs's absolute
-file name.  A shell script
-can check this variable to determine whether it has been run from an
-Emacs subshell.
+  Emacs also sets the @env{EMACS} environment variable to @code{t} if
+it is not already defined.  @strong{Warning:} This environment
+variable is deprecated.  Programs that check this variable should be
+changed to check @env{INSIDE_EMACS} instead.
 
 @node Shell Mode
 @subsection Shell Mode