From: "Craig Amey" <camey(a)reshape.com>
Date: Wed, 12 Dec 2001 10:35:32 -0800
This doesn't seem to work in Xemacs, except for the trivial case of typing
cd pathname at the prompt. shellt.el, the fix for GNU Emacs doesn't seem to
work (this works by appending an ; echo 'pwd' to the input stream). Just
about anything I've tried confuses or fails to resync the tracking ... such
as
cd $ENV_DIR
This works if xemacs knows the value of $ENV_DIR (cd $HOME works)
cd dir # where dir is in cdpath
cd 'pwd'
You can advise shell-process-cd, for example, here, I advise the
function to strip off string quotes (this is needed for
cd "/Program Files/foobar")
(defadvice shell-process-cd (before strip-quotes first activate)
"jwm: Strip quotes from filename"
(if (and (> (length arg) 2)
(eql (aref arg 0) ?\")
(eql (aref arg (1- (length arg))) ?\"))
(setq arg (subseq arg 1 (- (length arg) 1)))))
You could advise shel-process-cd and shell-process-pushd to handle
cdpath and ` quotes.
-jeff