[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comint.el: EMACS environment variable

From: Stefan Monnier
Subject: Re: comint.el: EMACS environment variable
Date: Sun, 19 Nov 2006 12:51:28 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

>     What about the EMACS variable in term mode (the one invoked by M-x
>     term RET)?  Currently, the variable is set to the emacs version, like

>       $ echo $EMACS
> (term:0.96)

> term should set INSIDE_EMACS as well.

I believe it's important to distinguish term from comint: the reason why
external programs sometimes want to check is EMACS=t (or now INSIDE_EMACS=t)
is because they need to adjust to the peculiar way comint interacts with
its inferior process: on the one side it's interactive, but on the other it
sends whole commands at a time (the inferior process doesn't get to see
OTOH term.el interacts with its inferior processes pretty much like xterm or
any other terminal emulator would.

So I think setting EMACS to t in comint and to something different (namely
<version>) in term was no mistake.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]