Mercurial > emacs
comparison man/misc.texi @ 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 | 81a55a7dc3c3 |
children | b57213679354 dbe3f29e61d6 |
comparison
equal
deleted
inserted
replaced
74054:8f7659d1566e | 74055:217e6137471a |
---|---|
484 @kbd{C-x @key{RET} c} immediately before @kbd{M-x shell}. You can | 484 @kbd{C-x @key{RET} c} immediately before @kbd{M-x shell}. You can |
485 also change the coding system for a running subshell by typing | 485 also change the coding system for a running subshell by typing |
486 @kbd{C-x @key{RET} p} in the shell buffer. @xref{Communication | 486 @kbd{C-x @key{RET} p} in the shell buffer. @xref{Communication |
487 Coding}. | 487 Coding}. |
488 | 488 |
489 @cindex @env{INSIDE_EMACS} environment variable | |
490 Emacs sets the envitonment variable @env{INSIDE_EMACS} to @code{t} | |
491 in the subshell. Programs can check this variable to determine | |
492 whether they are running inside an Emacs subshell. | |
493 | |
489 @cindex @env{EMACS} environment variable | 494 @cindex @env{EMACS} environment variable |
490 Unless the environment variable @env{EMACS} is already defined, | 495 Emacs also sets the @env{EMACS} environment variable to @code{t} if |
491 Emacs defines it in the subshell, with value equal to Emacs's absolute | 496 it is not already defined. @strong{Warning:} This environment |
492 file name. A shell script | 497 variable is deprecated. Programs that check this variable should be |
493 can check this variable to determine whether it has been run from an | 498 changed to check @env{INSIDE_EMACS} instead. |
494 Emacs subshell. | |
495 | 499 |
496 @node Shell Mode | 500 @node Shell Mode |
497 @subsection Shell Mode | 501 @subsection Shell Mode |
498 @cindex Shell mode | 502 @cindex Shell mode |
499 @cindex mode, Shell | 503 @cindex mode, Shell |