From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: compilation environment Date: Wed, 23 Jul 2003 11:43:41 -0700 (PDT) Organization: Sony Electronics Inc. Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030723.114341.78217332.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1058986009 30621 80.91.224.249 (23 Jul 2003 18:46:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Jul 2003 18:46:49 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jul 23 20:46:46 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19fOdS-0007xP-00 for ; Wed, 23 Jul 2003 20:46:46 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19fOvC-00039k-00 for ; Wed, 23 Jul 2003 21:05:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19fOcD-000422-BF for emacs-devel@quimby.gnus.org; Wed, 23 Jul 2003 14:45:29 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19fOaZ-0002Yk-Cy for emacs-devel@gnu.org; Wed, 23 Jul 2003 14:43:47 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19fOaX-0002WI-3G for emacs-devel@gnu.org; Wed, 23 Jul 2003 14:43:45 -0400 Original-Received: from mail2.fw-bc.sony.com ([160.33.98.69]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19fOaW-0002Vd-NH for emacs-devel@gnu.org; Wed, 23 Jul 2003 14:43:44 -0400 Original-Received: from mail2.sjc.in.sel.sony.com (mail2.sjc.in.sel.sony.com [43.134.1.111]) by mail2.fw-bc.sony.com (8.8.8/8.8.8) with ESMTP id SAA18578 for ; Wed, 23 Jul 2003 18:43:42 GMT Original-Received: by mail2.sjc.in.sel.sony.com id SAA04703; Wed, 23 Jul 2003 18:43:42 GMT Original-To: emacs-devel@gnu.org X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16450 West Bernardo Drive MZ7205, San Diego, CA 92127-1804 X-Mailer: Mew-4.0.56 on Emacs-21.3.50.1 (i386-msvc-nt5.0.2195) of 2003-07-22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15687 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15687 I sometimes encounter situations that I have to set specific list of environment variables to satisfy foreign compilation tools. This often happens while working on an embedded software development project. I used to set those environment variables globally by contaminating whole emacs environment. Can we add a customization variable something like below for this purpose so that the effect is localized? -Tak *** compile.el Tue Jul 8 06:41:13 2003 --- ../../../../../../emacs/emacs-21.3.50/lisp/progmodes/compile.el Wed Jul 23 11:02:54 2003 *************** *** 593,598 **** --- 593,603 ---- and exit message; it returns a cons (MESSAGE . MODELINE) of the strings to write into the compilation buffer, and to put in its mode line.") + (defvar compilation-environment nil + "Compilation specific custome environment list. + This list is temporarily prepended to `process-environment' prior to + starting the compilation process.") + ;; History of compile commands. (defvar compile-history nil) ;; History of grep commands. *************** *** 1090,1095 **** --- 1095,1101 ---- (if (not no-async) (let* ((process-environment (append + compilation-environment (if (and (boundp 'system-uses-terminfo) system-uses-terminfo) (list "TERM=dumb" "TERMCAP="