From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: [OS X] new variable for app bundle path Date: Mon, 03 Sep 2007 13:18:40 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <61C33CA6-BE86-48EF-8B7E-E2CE093F8876@mac.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1188793133 1545 80.91.229.12 (3 Sep 2007 04:18:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Sep 2007 04:18:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Seiji Zenitani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 03 06:18:52 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 1IS3Ol-0005NE-QI for ged-emacs-devel@m.gmane.org; Mon, 03 Sep 2007 06:18:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IS3Ok-00026h-FQ for ged-emacs-devel@m.gmane.org; Mon, 03 Sep 2007 00:18:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IS3Og-000265-MD for emacs-devel@gnu.org; Mon, 03 Sep 2007 00:18:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IS3Od-00024s-98 for emacs-devel@gnu.org; Mon, 03 Sep 2007 00:18:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IS3Od-00024p-21 for emacs-devel@gnu.org; Mon, 03 Sep 2007 00:18:43 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IS3Oc-0008FY-Mm for emacs-devel@gnu.org; Mon, 03 Sep 2007 00:18:42 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id F2D152C45; Mon, 3 Sep 2007 13:18:40 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-Detected-Kernel: NetBSD 3.0 (DF) 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:77639 Archived-At: >>>>> On Sun, 2 Sep 2007 23:59:26 -0400, Seiji Zenitani said: > Checking window-system ('mac) cannot distinguish two CLI (command > line interface) cases. Sorry, in the previous mail, I misunderstood the cases you want to distinguish. > 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. Actually, I thought of this case when I replied first. My idew was not just a single expand-file-name call but with checking whether invocation-directory ends with "/Contents/MacOS/". That's why I used the term "deduce". YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp