Same behavior with Aquamacs.

But renaming site-start.el to something else "fixes" the problem (even
if I don't rename my .emacs.el). This also works as a 'solution' for
Aquamacs.

These are the relevant lines in path-config.el that are causing me problems:

 ((string-match "\/bash$" shell-file-name)
  (carbon-emacs-package-add-to-path
   (shell-command-to-string "bash -l -c 'echo -n $PATH'")))

These interact with my .profile (which checks if Terminal.app and X11
are loaded with DISPLAY exported):

### .profile
PATH="/usr/local/bin:$PATH"
export PATH

if [ ! ${SSH_TTY} ]; then
    if [ "`ps -x | awk '{print $5}' | grep X11`" = "" ]; then
        open /Applications/Utilities/X11.app &
        osascript -e 'tell application "Terminal" to activate'
    fi
    if [ x${DISPLAY} = x ]; then
        export DISPLAY=:0
    fi
fi
### end .profile

So I changed path-config.el to use

 ((string-match "\/bash$" shell-file-name)
  (carbon-emacs-package-add-to-path
   (shell-command-to-string "bash -c 'echo -n $PATH'")))

ie, changed from "bash -l" to "bash", which fixes this interaction
with my .profile.

Am I missing something for not making bash to behave as if it was
invoked as a login shell?

Thank you so much,

b

On 10/22/07, Seiji Zenitani <[EMAIL PROTECTED]> wrote:
>
> On 2007/10/21, at 19:32, Benilton Carvalho wrote:
> >
> > Yup. I tried it earlier in the week, ie. renamed .emacs.el to
> > something else... and the behavior persists.
> >
> > b
>
> Strange.  What happens if you temporally remove /Applications/
> Emacs.app/Contents/Resources/site-lisp/site-start.el (and
> your .emacs.el)?  That file enables several pre-configurations.  Do
> you observe the problem in David Reitter's Aquamacs Emacs <http://
> aquamacs.org/>?
>
> Seiji
>
>
> > On 10/21/07, Seiji Zenitani <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi,
> >>
> >> On 2007/10/21, at 16:06, Benilton Carvalho wrote:
> >>>
> >>> Sorry for being so vague.
> >>>
> >>> I'm running Mac OS X 10.4.10. The language I'm using is English,
> >>> but I
> >>> do have a "US International" input layout configured (which is not
> >>> what I use when using Emacs, for Emacs I use "regular" English).
> >>>
> >>> Yes, my problem is exactly this: Terminal.app is launched
> >>> automatically when I load Emacs.app.
> >>>
> >>> My *Messages* buffer is as follows:
> >>>
> >>> ("/Applications/Emacs.app/Contents/MacOS/Emacs")
> >>> Loading mac-print-mode...
> >>> Loading advice...done
> >>> Loading mac-print-mode...done
> >>> Loading /Applications/Emacs.app/Contents/Resources/site-lisp/site-
> >>> start.d/auctex-fix.el
> >>> (source)...done
> >>> Loading /Applications/Emacs.app/Contents/Resources/site-lisp/site-
> >>> start.d/auctex.el
> >>> (source)...
> >>> Loading /Applications/Emacs.app/Contents/Resources/site-lisp/tex-
> >>> site.el
> >>> (source)...done
> >>> Loading /Applications/Emacs.app/Contents/Resources/site-lisp/site-
> >>> start.d/auctex.el
> >>> (source)...done
> >>> Loading /Applications/Emacs.app/Contents/Resources/site-lisp/site-
> >>> start.d/builtin-aspell.el
> >>> (source)...done
> >>> Loading /Applications/Emacs.app/Contents/Resources/site-lisp/site-
> >>> start.d/japanese-init.el
> >>> (source)...done
> >>> Loading /Applications/Emacs.app/Contents/Resources/site-lisp/site-
> >>> start.d/path-config.el
> >>> (source)...
> >>> PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/
> >>> X11R6/bin
> >>> Loading /Applications/Emacs.app/Contents/Resources/site-lisp/site-
> >>> start.d/path-config.el
> >>> (source)...done
> >>> Loading /Applications/Emacs.app/Contents/Resources/site-lisp/site-
> >>> start.d/preview-latex.el
> >>> (source)...done
> >>
> >> The above lines look OK.
> >>
> >>> Loading server...done
> >>> Loading ess-site...
> >>> Loading regexp-opt...done
> >>> Loading ess-site...done
> >>> Loading avoid...done
> >>> Loading encoded-kb...done
> >>>
> >> I assume that you have (require 'ess-site) in your .emacs.el.  I
> >> wonder your problem may be inside your .emacs.el.  If you temporally
> >> renamed your .emacs.el to something else (e.g. .emacs_tmp.el), does
> >> Terminal.app still start automatically?
> >>
> >>
> >> Seiji
> >>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
"Carbon Emacs" group mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/carbon-emacs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to