all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System)
To: Adrian Robert <adrian.b.robert@gmail.com>
Subject: bug#1555: marked as done (OSX Emacs.app not containing enough  paths (emacs lisp fix included))
Date: Mon, 19 Jan 2009 19:00:03 +0000	[thread overview]
Message-ID: <handler.1555.D1555.123239124017761.ackdone@emacsbugs.donarmstrong.com> (raw)
In-Reply-To: 8574d28f0812121312q71d4c255wa849a4f0639d1925@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]


Your message dated Mon, 19 Jan 2009 20:49:39 +0200
with message-id <2C9FF472-FCE0-4CCA-B84C-2505BC87F037@gmail.com>
and subject line Re: OSX Emacs.app not containing enough paths (emacs lisp fix included)
has caused the Emacs bug report #1555,
regarding OSX Emacs.app not containing enough paths (emacs lisp fix included)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
1555: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1555
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 8343 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 1513 bytes --]

Emacs.app version 23.0.60 (9.0)
(getenv "PATH")
    => bare minimum (/usr/bin:/bin:/usr/sbin:/sbin)

exec-path
    => bare minimum but with /Applications/Emacs.app/Contents/MacOS/bin

OSX seems to keep paths in /etc/paths and files in /etc/paths.d, programs
launched from Terminal seem to pick this up but Emacs.app is not loaded from
terminal so the path is kinda small. the problem was interacting with other
programs via m-!, eshell, etc.

this seems to fix it, not sure if it's the right way tho.

(setenv "PATH"
        (let ((osx-path-files
               (append (mapcar (lambda (x) (concat "/etc/paths.d/" x))
                               (delete ".." (delete "." (directory-files
"/etc/paths.d"))))
                       '("/etc/paths")))
              (read-path-file
               (lambda (file)
                 (when (file-readable-p file)
                   (delete ""
                           (split-string (with-temp-buffer
(insert-file-contents file)
                                                           (buffer-substring
(point-min) (point-max)))
                                         "\n"))))))
          (mapconcat 'identity
                     (reverse (delete-dups (reverse
                                            (append (reduce 'append
                                                            (mapcar
read-path-file osx-path-files))
                                                    (split-string (getenv
"PATH") ":")))))
                     ":")))



-- 
franco

[-- Attachment #2.1.2: Type: text/html, Size: 3331 bytes --]

[-- Attachment #3: Type: message/rfc822, Size: 2700 bytes --]

From: Adrian Robert <adrian.b.robert@gmail.com>
To: 1555-done@emacsbugs.donarmstrong.com
Cc: "Francesco Lazzarino" <flazzarino@gmail.com>
Subject: Re: OSX Emacs.app not containing enough paths (emacs lisp fix included)
Date: Mon, 19 Jan 2009 20:49:39 +0200
Message-ID: <2C9FF472-FCE0-4CCA-B84C-2505BC87F037@gmail.com>

Hi,

Please see the section about "Grabbing environment variables" in the  
Emacs.app (Mac / GNUstep) section of the info manual.

(Closing bug.)



      parent reply	other threads:[~2009-01-19 19:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2C9FF472-FCE0-4CCA-B84C-2505BC87F037@gmail.com>
2008-12-12 21:12 ` bug#1555: OSX Emacs.app not containing enough paths (emacs lisp fix included) Francesco Lazzarino
2008-12-13 19:42   ` David Reitter
2009-01-19 19:00   ` Emacs bug Tracking System [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=handler.1555.D1555.123239124017761.ackdone@emacsbugs.donarmstrong.com \
    --to=owner@emacsbugs.donarmstrong.com \
    --cc=adrian.b.robert@gmail.com \
    /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.