help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [h-e-w] cygwin supbrocess startup directory


From: Underwood, Jonathan
Subject: RE: [h-e-w] cygwin supbrocess startup directory
Date: Mon, 11 Feb 2002 09:54:27 -0500

I'm not sure that'll solve the problem, since auctex starts whatever shell noninteractively. A non-interactive bash shell doesn;'t read .bashrc or indeed any config files, unless you use the BASH_ENV environment variable to tell it to (see man bash).
 
For what it's worth, i use bash all the time through emacs, however, due to the incomplete nature of the tex/latex distribution currently included with cygwin, i use the infinitely better and more complete miktex distribution (www.miktex.org) which works superbly with auctex. This, being a native windows application runs via the cmd.exe shell, but switching between shells within an emacs session is relatively trivial (mail me if you need some elisp for this)
 
jonathan.
-----Original Message-----
From: address@hidden [mailto:address@hidden
Sent: February 10, 2002 8:53 PM
To: address@hidden; address@hidden
Subject: Re: [h-e-w] cygwin supbrocess startup directory

address@hidden writes:

I use cygwin as the shell subprocess under emacs (i.e. M-x shell launches
cygwin).  My shell subprocesses start in my HOME directory.  I need to make
them start in the current directory of the buffer being edited by emacs.
The main reason is that auctex uses cygwin as a shell to run latex.  Under
the current setup I can only use auctex to latex a file in its home
directory.

How do I control the directory in which the shell sub-process starts
?


Probably your ~/.bashrc has code in it to set the working directory to $HOME.
Remove that when running under emacs.

if ! test -z $EMACS; then
# We're called from emacs
fi

if test -z $EMACS; then
# We're not called from emacs
fi

are the appropriate tests.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]