From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Kamphausen Newsgroups: gmane.emacs.help Subject: Re: MAC OSX Emacs does not find PATH Date: Tue, 06 Apr 2010 10:17:31 +0200 Organization: Church of Emacs Message-ID: <87ochx2dwk.fsf@usenet.my.skamphausen.de> References: <54cea182-c0db-41dd-b835-0b9268d2acb0@n34g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273004151 32066 80.91.229.12 (4 May 2010 20:15:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 20:15:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 22:15:50 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9OWz-0000xI-LR for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 22:15:49 +0200 Original-Received: from localhost ([127.0.0.1]:37246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9OPF-0005l6-2g for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 16:07:49 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 Original-X-Trace: news.albasani.net X8bQVxMHsdeVWRUDJFc59lto2SMWYggMnXGj8OHNqgpsHqTWhSts13PGdBM+/CNjWw79frtdPV4OR70nuTfxlA7+m7a3PD7lpHhZ6HrQPs1qMXBqr3i/+8ZFikJU13Xd Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Tue, 6 Apr 2010 08:17:32 +0000 (UTC) X-User-ID: moolUJYzWakKtAaVMrxM61exxWOVLQWKR/iCZGAqDRU= Cancel-Lock: sha1:xKKXZgGh1SMdzoQsLIt0Pp9j52M= sha1:iG+0Tb5uqcX+oCsCCKYsS0MP7/M= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-NNTP-Posting-Host: ZSBcYlAgG7F3wG24tQn5KIHf53/v+watWG8ncpidVtg= Original-Xref: usenet.stanford.edu gnu.emacs.help:177651 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73128 Archived-At: Hi, "Daniel (Youngwhan)" writes: > Hello, > > I am using GNU Emacs 23.1.95.1 (x86_64-apple-darwin, NS apple- > appkit-1038.29) of 2010-04-03 on black.local in MAC OSX (intel) > > And, I found that it does not recognize added PATH in bash/ > environment.plist at all. > [...] > When I launch it through terminal, it works as expected. I am by no means an OSX expert, just unhappily stuck with that machine for two years... AFAIK the PATH together with the rest of your environment depends on how you start things.. * From a terminal using some shell-script which opens Emacs.app: This will inherit the PATH from you shell environment, just as in Linux, so ~/.bashrc /etc/profile etc all should work. * From the Dock using some Icon: This becomes a child process of the window server and has no knowledge of your shell environment. It should read the environment plist you mentioned already, though. Unfortunately there is no (easy) way to keep PATH in ~/.bashrc and in env-plist in sync, you'll have to take care of that yourself * From spotlight, i.e. Apple-Space, search for Emacs, start the App: This is a direct child of the init-process, called launchd on OSX. Well, this one reads neither /etc/profile nor env-plist, it is controlled by some other conf-file in /etc, which I forgot. Since fiddling with that could lead to an unbootable system (as far as I can tell, that is) I stopped at that point, when I had problems with PATH, and just chose not to start Emacs (or Netbeans or whatever) using spotlight. Ridiculous if you ask me, but then, I'm already through one year and for me there's only one more left ;-) Cheers, Stefan -- a blessed +42 regexp of confusion (weapon in hand) You hit. The format string crumbles and turns to dust. user=> (clojure-buch (Locale/GERMANY)) #