Craig Amey writes:
This doesn't seem to work in Xemacs
I have some bash functions set up when I'm running a shell in
[X]Emacs. I use "gnuclient" commands to allow the shell to execute
commands in the parent [X]Emacs process. I find this approach to be
quite powerful (e.g. you can type "make" and get the effect of
"M-x compile", or have "mail" bring up your VM frame)
You might try something like the following:
cd ()
{
builtin cd "${1:-~}"; gnuclient -batch -eval "(cd
\"`pwd`\")" ;
}