Richard Stallman writes: > Can someone please look at this, then ack to me?
I started Emacs with this command: ./src/emacs --no-init-file --no-site-file -l ~/tcsh-init.el The file ~/tcsh-init.el contains the following: (setq shell-file-name "tcsh") (setenv "SHELL" shell-file-name) (setq explicit-shell-file-name shell-file-name) (setq comint-completion-recexact t) (setq comint-input-ignoredups t) (setq comint-input-ring-file-name ".emacs.d/foo_history") (setq comint-prompt-regexp "^[a-z]+ [0-9]+ /\\\\ ") (setq comint-use-prompt-regexp nil) (setq shell-cd-regexp "[cp]d") (setq shell-dirtrack-verbose nil) (setq shell-pushd-regexp "p(ush|)d") The first three lines are there to convince shell-mode to start `tcsh' as the default shell. The rest are variables customized by original bug reporter. My first test was to issue a "pushd /etc" and see if a "C-x C-f" would offer me that directory as the default one. Test failed. Emacs is not even recognizing "pushd"s. So I noted that the customization of `shell-pushd-regexp' (see above) is bogus. I changed that to (setq shell-pushd-regexp "p\\(ush\\|\\)d") and tried some "pushd"s and "popd"s again. Emacs seems to correctly keep track of the working directory now. The problem was not tcsh specific AFAICT. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel