[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compile mode and $EMACS
From: |
Xue Fuqiao |
Subject: |
Re: compile mode and $EMACS |
Date: |
Sun, 11 Aug 2013 06:38:20 +0800 |
On Sun, Aug 11, 2013 at 12:47 AM, Sebastian Wiesner <address@hidden> wrote:
> Hello,
>
> I just discovered that compile mode adds "EMACS=t" to the process
> environment (see "compilation-start").
>
> What is this variable for? How is it supposed to be interpreted by
> the invoked program? Which programs do actually use it?
In (info "(emacs) Interactive Shell"):
Emacs sets the environment variable `INSIDE_EMACS' in the subshell
to `VERSION,comint', where VERSION is the Emacs version (e.g., `24.1').
Programs can check this variable to determine whether they are running
inside an Emacs subshell. (It also sets the `EMACS' environment
variable to `t', if that environment variable is not already defined.
However, this environment variable is deprecated; programs that use it
should switch to using `INSIDE_EMACS' instead.)
--
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/