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 23:59:26 -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 1188791987 31846 80.91.229.12 (3 Sep 2007 03:59:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Sep 2007 03:59:47 +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 05:59:45 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 1IS36C-0003M4-49 for ged-emacs-devel@m.gmane.org; Mon, 03 Sep 2007 05:59:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IS36B-0001IS-38 for ged-emacs-devel@m.gmane.org; Sun, 02 Sep 2007 23:59:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IS368-0001IN-Fw for emacs-devel@gnu.org; Sun, 02 Sep 2007 23:59:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IS366-0001IB-3j for emacs-devel@gnu.org; Sun, 02 Sep 2007 23:59:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IS365-0001I8-VO for emacs-devel@gnu.org; Sun, 02 Sep 2007 23:59:33 -0400 Original-Received: from smtpout.mac.com ([17.250.248.172]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IS365-0004a5-FH for emacs-devel@gnu.org; Sun, 02 Sep 2007 23:59:33 -0400 Original-Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/smtpout02/MantshX 4.0) with ESMTP id l833xWFo010848; Sun, 2 Sep 2007 20:59:32 -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/smtpin07/MantshX 4.0) with ESMTP id l833xUNk002709; Sun, 2 Sep 2007 20:59:31 -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:77638 Archived-At: On 2007/09/02, at 23:16, YAMAMOTO Mitsuharu wrote: >> 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". > > Why don't you check window-system additionally? > YAMAMOTO Mitsuharu > mituharu@math.s.chiba-u.ac.jp Checking window-system ('mac) cannot distinguish two CLI (command line interface) cases. The mac-app-path should be available even when emacs is invoked from the CLI (/Application/Emacs.app/Contents/ MacOS/Emacs -nw) inside the app bundle folder. On the other hand, it should not be available when invoked from /usr/local/bin/emacs. Seiji Zenitani zenitani@mac.com