unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jai Dayal <dayalsoap@gmail.com>
To: autozimu@gmail.com
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Some problems of Emacs on my OS X 10.8.5
Date: Sun, 23 Feb 2014 14:28:34 -0500	[thread overview]
Message-ID: <CAMJ-YiR9kBb79_ipPPF09_sD6_=UaZT6aLOA6y1drA9s5E1vFw@mail.gmail.com> (raw)
In-Reply-To: <5d80afb8-714b-483c-b5f9-ce9bce969c81@googlegroups.com>

So the problem with OSX is that the .profile script is not executed when
you login. This is different from GNU Linux distributions which execute
.bashrc when you log in. .profile is only executed when you run a shell. If
you launch emacs from outside the shell, i.e., clicking an icon on your
desktop or via the dock (which I do), .profile isn't loaded.

the environment plist file is what OSX uses to setup it's environment when
you "log in":

~/.MacOSX/environment.plist


Jai



On Sun, Feb 23, 2014 at 1:45 PM, <autozimu@gmail.com> wrote:

> On Sunday, February 23, 2014 2:55:05 AM UTC-5, Haomin Long wrote:
> > Hello!
> >
> > Recently I use Emacs 24.3 on my OS X 10.8.5.
> >
> > To debug, I installed GNU GDB 7.7  from homebrew.
> >
> > But in Emacs I can't use M-x gdb. It just showed "No such file or
> >
> > directory, gdb" in the minibuffer.
> >
> > I typed "M-! echo $PATH" and it did show the directory that containing
> the
> >
> > GDB program.
> >
> > So I typed "M-! gdb ***". After that it did execute GDB , but the first
> >
> > line of it is "(gdb) quit"!!
> >
> > I searched a lot at Google but I'm not able to solve it.
> >
> > Is it some kind of Bug?
> >
> > THANKS!
> >
> >
> >
> > --
> >
> >
> >
> > *Houman Lung*
> >
> >
> >
> > *Department of Computer Science and Technology, Tsinghua University,
> >
> > Beijing China*
> >
> >
> >
> > *Mobile: (+86)18688148073*
> >
> > *E-mail: cherudim9@gmail.com <cherudim9@gmail.com>*
>
> I believe Emacs uses the variable `exec-path` to find executables, rather
> than the env $PATH from shell.
>
> This [script](https://github.com/purcell/exec-path-from-shell) might
> helps.
>


  reply	other threads:[~2014-02-23 19:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.15838.1393166516.10748.help-gnu-emacs@gnu.org>
2014-02-23 18:45 ` Some problems of Emacs on my OS X 10.8.5 autozimu
2014-02-23 19:28   ` Jai Dayal [this message]
2014-02-24  8:58     ` Peter Dyballa
2014-02-23  7:55 Haomin Long

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMJ-YiR9kBb79_ipPPF09_sD6_=UaZT6aLOA6y1drA9s5E1vFw@mail.gmail.com' \
    --to=dayalsoap@gmail.com \
    --cc=autozimu@gmail.com \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).