From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: How to make emacs path aware on MacOSX Date: Thu, 14 Apr 2011 16:18:04 +0200 Message-ID: <1422A758-0334-4BD5-AC99-0E19E208C03B@Web.DE> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1302790705 6206 80.91.229.12 (14 Apr 2011 14:18:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2011 14:18:25 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: "Young, Ed" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 14 16:18:22 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QANNF-0008EL-Fw for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Apr 2011 16:18:21 +0200 Original-Received: from localhost ([::1]:56080 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QANNE-0006rK-UM for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Apr 2011 10:18:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QANN6-0006qz-4Q for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 10:18:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QANN5-00025D-7W for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 10:18:12 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:47128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QANN4-00024v-TK for help-gnu-emacs@gnu.org; Thu, 14 Apr 2011 10:18:11 -0400 Original-Received: from smtp08.web.de ( [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id DCBC718C1B94F; Thu, 14 Apr 2011 16:18:05 +0200 (CEST) Original-Received: from [91.35.246.71] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (WEB.DE 4.110 #2) id 1QANMz-00082U-00; Thu, 14 Apr 2011 16:18:05 +0200 In-Reply-To: X-Mailer: Apple Mail (2.936) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX18pySSyBc69ZJK3hYh8ZaLha6Mmve0Qxiqzmcvy xe2tQQOc/8Ca9olvfmka2CO0xHjk8fffYOzJOKmAS9/WswRjdm yzZuNUa3hNNfcxdCTxeA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.221 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80794 Archived-At: Am 14.04.2011 um 14:19 schrieb Young, Ed: > Sorry, but that doesn't make any sense to me. If I define a variable > in > the environment.plist file, I did not understand completely what you wrote and assumed that you were still referring to the usual files a shell interpreter is reading when it is started. > and then log out and back in (that's a pain) the variables are > available. Mac OS X allows to set up some so-called "Startup Items"... > > The problem is when I try to embed a variable in the value of another > variable: > > SW_HOME /opt/comcast/software > GROOVY_HOME $SW_HOME/groovy/current > > In the case above, SW_HOME doesn't resolve correctly in the > GROOVY_HOME > variable. That's indeed not possible inside ~/.MacOSX/environment.plist. It's just a simple text, or, better: XML file. Inside it no substitution happens. With GNU Emacs or some other editor it's really not that complicated to substitute variable names with the contents they stand for. OTOH, a shell should be able resolve a setting like "$SW_HOME/groovy/ current" when "$SW_HOME" is given. Proof: ls -l $SW_HOME/groovy/current -- Greetings Pete <] o __o |__ o HPV, the real ___o /I -\<, |o \ -\),-% high speed! ___/\ /\___./ \___...O/ O____.....`-O-'-()--o_________________