[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: popd in tcsh fails]
From: |
Emilio Lopes |
Subject: |
Re: address@hidden: popd in tcsh fails] |
Date: |
Tue, 23 Aug 2005 20:02:52 +0200 |
User-agent: |
Emacs Gnus |
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.