From: John Wiegley <johnw@gnu.org>
Subject: Re: carbon emacs on OS X 10.3 (Panther): how to fix environment?
Date: Mon, 12 Jan 2004 13:17:18 -0800 [thread overview]
Message-ID: <m2vfngkgtd.fsf@Majnun.local> (raw)
In-Reply-To: <6080F1A8-4516-11D8-9AA4-00039364573C@lafros.com> (Rob Dickens's message of "Mon, 12 Jan 2004 15:45:41 +0000")
Rob Dickens <rob.dickens@lafros.com> 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 use the following in my .emacs (note: it needs my xml-parse.el
module, http://www.newartisans.com/johnw/Emacs/xml-parse.el):
(when (file-readable-p "~/.MacOSX/environment.plist")
(with-temp-buffer
(insert-file-contents "~/.MacOSX/environment.plist")
(let* ((dict (cdr (assoc "dict" (read-xml)))))
(while dict
(when (string= "key" (caar dict))
(setenv (car (cdr (car dict)))
(car (cdr (cadr dict))))
(message "Setting %s=%s" (car (cdr (car dict)))
(car (cdr (cadr dict)))))
(setq dict (cddr dict)))))
(setq exec-path nil)
(dolist (path (nreverse (split-string (getenv "PATH") ":")))
(add-to-list 'exec-path path)))
next prev parent reply other threads:[~2004-01-12 21:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-12 15:45 carbon emacs on OS X 10.3 (Panther): how to fix environment? Rob Dickens
2004-01-12 19:04 ` Benjamin Riefenstahl
2004-01-12 20:00 ` Rob Dickens
2004-01-13 11:35 ` Benjamin Riefenstahl
2004-01-12 21:17 ` John Wiegley [this message]
2004-01-13 11:16 ` Benjamin Riefenstahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2vfngkgtd.fsf@Majnun.local \
--to=johnw@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.