From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.devel Subject: Re: compile mode and $EMACS Date: Sun, 11 Aug 2013 06:38:20 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1376174307 27886 80.91.229.3 (10 Aug 2013 22:38:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Aug 2013 22:38:27 +0000 (UTC) Cc: emacs-devel To: Sebastian Wiesner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 11 00:38:30 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V8Hno-0003Zd-E5 for ged-emacs-devel@m.gmane.org; Sun, 11 Aug 2013 00:38:28 +0200 Original-Received: from localhost ([::1]:48574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8Hno-00044b-3G for ged-emacs-devel@m.gmane.org; Sat, 10 Aug 2013 18:38:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8Hni-00044M-Sw for emacs-devel@gnu.org; Sat, 10 Aug 2013 18:38:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8Hnh-0003iE-TT for emacs-devel@gnu.org; Sat, 10 Aug 2013 18:38:22 -0400 Original-Received: from mail-ie0-x235.google.com ([2607:f8b0:4001:c03::235]:47453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8Hnh-0003i8-OZ for emacs-devel@gnu.org; Sat, 10 Aug 2013 18:38:21 -0400 Original-Received: by mail-ie0-f181.google.com with SMTP id x14so6334938ief.12 for ; Sat, 10 Aug 2013 15:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8xd6y6vGqJndpAQJDto5zmBO8Q4AhwpMjz+/iiYcb0Y=; b=eudfIPuE+ZlUey+OWJgv11lZpSAsGPdeMscFGNUKa/I1Z4AuGQypkLSF9tWpC7GQbm cBHQrkxcZcWTOK8vnYeGYoCMi9CMSOfjJkIVM0dmniJ0RgxjPt4d+cZ4ku+wCe72ZGyv HKKHSSJE9U01b8ivcdOqI4CbQ7Ufr89BSE5IcQApdjrgMsphBAvP75aJSeJRrjMSkii6 Zktd5PGnyV034dE1c/31rT0jOi9vbornnHBR0s0srN3CuMVQC896o+/8QzYl5Z3sxOrv zfwNLlpdRytQSS636psIAo6um/oEmViDM/KFyH0nlKMEOCwEVIhb7DfFhxk1QISJoh9T 8o4Q== X-Received: by 10.50.85.114 with SMTP id g18mr5367025igz.15.1376174301016; Sat, 10 Aug 2013 15:38:21 -0700 (PDT) Original-Received: by 10.43.43.201 with HTTP; Sat, 10 Aug 2013 15:38:20 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162556 Archived-At: On Sun, Aug 11, 2013 at 12:47 AM, Sebastian Wiesner 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/