From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emilio Lopes Newsgroups: gmane.emacs.devel Subject: Re: [Peter_Dyballa@Web.DE: popd in tcsh fails] Date: Tue, 23 Aug 2005 20:02:52 +0200 Organization: private Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1124820951 10592 80.91.229.2 (23 Aug 2005 18:15:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2005 18:15:51 +0000 (UTC) Cc: Peter_Dyballa@Web.DE Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 23 20:15:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E7dH3-0003R5-W2 for ged-emacs-devel@m.gmane.org; Tue, 23 Aug 2005 20:13:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E7dKq-0008Io-Ig for ged-emacs-devel@m.gmane.org; Tue, 23 Aug 2005 14:17:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E7dKX-0008Hw-8Y for emacs-devel@gnu.org; Tue, 23 Aug 2005 14:17:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E7dKU-0008Gk-W8 for emacs-devel@gnu.org; Tue, 23 Aug 2005 14:17:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E7dKU-0008Gf-UZ for emacs-devel@gnu.org; Tue, 23 Aug 2005 14:16:58 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E7dH4-0001t2-LF for emacs-devel@gnu.org; Tue, 23 Aug 2005 14:13:27 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1E7dE7-0002Sg-Ug for emacs-devel@gnu.org; Tue, 23 Aug 2005 20:10:24 +0200 Original-Received: from p62.246.12.251.tisdip.tiscali.de ([62.246.12.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Aug 2005 20:10:23 +0200 Original-Received: from eclig by p62.246.12.251.tisdip.tiscali.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Aug 2005 20:10:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 41 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p62.246.12.251.tisdip.tiscali.de User-Agent: Emacs Gnus Cancel-Lock: sha1:3Ef693MQWgqII2DRuG2DYFW7hZc= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42357 Archived-At: 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.