From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.devel Subject: Re: carbon emacs on OS X 10.3 (Panther): how to fix environment? Date: Mon, 12 Jan 2004 20:04:07 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <6080F1A8-4516-11D8-9AA4-00039364573C@lafros.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073941779 11019 80.91.224.253 (12 Jan 2004 21:09:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2004 21:09:39 +0000 (UTC) Cc: Rob Dickens Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jan 12 22:09:35 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ag9JX-0001l8-00 for ; Mon, 12 Jan 2004 22:09:35 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ag9JW-0003XA-00 for ; Mon, 12 Jan 2004 22:09:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ag9dz-00046q-Ao for emacs-devel@quimby.gnus.org; Mon, 12 Jan 2004 16:30:43 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ag8tu-0006Or-4d for emacs-devel@gnu.org; Mon, 12 Jan 2004 15:43:06 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ag8Nc-0001Ux-Sv for emacs-devel@gnu.org; Mon, 12 Jan 2004 15:10:16 -0500 Original-Received: from [193.28.100.165] (helo=mail.epost.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ag8K9-00006x-Bj for emacs-devel@gnu.org; Mon, 12 Jan 2004 15:06:09 -0500 Original-Received: from seneca.benny.turtle-trading.net.epost.de (193.99.153.30) by mail.epost.de (6.7.015) id 3FECB46100209F82; Mon, 12 Jan 2004 20:04:28 +0100 Original-To: emacs-devel@gnu.org In-Reply-To: <6080F1A8-4516-11D8-9AA4-00039364573C@lafros.com> (Rob Dickens's message of "Mon, 12 Jan 2004 15:45:41 +0000") User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19150 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19150 Hi Rob, Rob Dickens writes: > I understand that launching emacs from the Terminal commandline will > give me the correct **environment variables**. Is anyone working on > a fix so that it can be launched from the dock? I think the problem is not fixable by Emacs, it's a generic conceptual Mac OS X issue. When you launch Emacs from the Dock, no command-line shell is ever involved, so none of the command-line shell init files is ever evaluated. You can set environment variables for the Finder and the Dock in ~/.MacOSX/environment.plist, see . These will than be inherited by Emacs. These settings are static, this file is not using any kind of scripting language. I would assume that you can write an AppleScript to do more dynamic stuff. The script would talk to the Finder and/or Dock. You would than add that AppleScript to your Startup Items (see the "Accounts" System Preferences). You can also set environment variables in your ~/.emacs using the (setenv) function. This will than of course only affect packages that get loaded afterwards. > However, even launching from the commandline doesn't give me the > correct **groups**. Does anyone have a fix for that? Can you expand? I don't quite understand what you mean here. benny