all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
Cc: emacs-devel@gnu.org
Subject: Re: carbon emacs on OS X 10.3 (Panther): how to fix environment?
Date: Tue, 13 Jan 2004 12:16:52 +0100	[thread overview]
Message-ID: <m3smik14kb.fsf@seneca.benny.turtle-trading.net> (raw)
In-Reply-To: <m2vfngkgtd.fsf@Majnun.local> (John Wiegley's message of "Mon, 12 Jan 2004 13:17:18 -0800")

Hi John,


John Wiegley <johnw@gnu.org> writes:
> (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)))

??

Why do you need this?  My understanding is that
~/.MacOSX/environment.plist is read by the Finder and that the
variables are inherited automatically by Emacs.

The code should only have an effect, if you log in through SSH, where
the Finder isn't in the loop.  But for that situation you can set the
variables in ~/.cshrc or ~/.bashrc or somewhere similar.

What am I missing?


benny

      reply	other threads:[~2004-01-13 11:16 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
2004-01-13 11:16   ` Benjamin Riefenstahl [this message]

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=m3smik14kb.fsf@seneca.benny.turtle-trading.net \
    --to=benjamin.riefenstahl@epost.de \
    --cc=emacs-devel@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.