From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Seiji Zenitani Newsgroups: gmane.emacs.devel Subject: Re: [OS X] new variable for app bundle path Date: Sun, 2 Sep 2007 22:54:04 -0400 Message-ID: References: <61C33CA6-BE86-48EF-8B7E-E2CE093F8876@mac.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1188788089 25149 80.91.229.12 (3 Sep 2007 02:54:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Sep 2007 02:54:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 03 04:54:48 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IS25H-0003jS-CM for ged-emacs-devel@m.gmane.org; Mon, 03 Sep 2007 04:54:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IS25G-0000GA-7M for ged-emacs-devel@m.gmane.org; Sun, 02 Sep 2007 22:54:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IS25D-0000G5-HV for emacs-devel@gnu.org; Sun, 02 Sep 2007 22:54:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IS25A-0000Ft-5U for emacs-devel@gnu.org; Sun, 02 Sep 2007 22:54:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IS259-0000Fq-Ua for emacs-devel@gnu.org; Sun, 02 Sep 2007 22:54:31 -0400 Original-Received: from smtpout.mac.com ([17.250.248.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IS259-0002Mn-8E for emacs-devel@gnu.org; Sun, 02 Sep 2007 22:54:31 -0400 Original-Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/smtpout01/MantshX 4.0) with ESMTP id l832s9LQ019446; Sun, 2 Sep 2007 19:54:10 -0700 (PDT) Original-Received: from [10.0.1.199] (c-68-55-160-31.hsd1.md.comcast.net [68.55.160.31]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 4.0) with ESMTP id l832s8bk009190; Sun, 2 Sep 2007 19:54:08 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.752.3) X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77630 Archived-At: Yes, (expand-file-name "../.." invocation-directory) would be an alternative on Mac window environment. By the way, when invoked from CLI, invocation-directory returns "/usr/local/bin" or "/Application/Emacs.app/Contents/MacOS". On the other hand, the new variable will be more logical: 0 (strictly speaking, it should be nil) or "/Application/Emacs.app". Seiji Zenitani zenitani@mac.com On 2007/09/01, at 22:11, YAMAMOTO Mitsuharu wrote: >>>>>> On Sat, 1 Sep 2007 21:37:35 -0400, Seiji Zenitani >>>>>> said: > >> Is it possible to provide a new variable for Carbon port, which >> stands for the application bundle path? > > Can't it be deduced from invocation-directory? > > YAMAMOTO Mitsuharu > mituharu@math.s.chiba-u.ac.jp