Xref: utzoo gnu.emacs.bug:1122 comp.emacs:6820 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!cme!durer!warsaw From: warsaw@cme.nist.gov (Barry A. Warsaw) Newsgroups: gnu.emacs.bug,comp.emacs Subject: Problem in GNUemacs shell-mode (popd, pushd, cd) Message-ID: Date: 7 Sep 89 15:48:43 GMT Sender: news@cme.nbs.gov Organization: National Institute of Standards and Technology Lines: 31 [This didn't go out the first time, lets try again] There seems to be a problem with shell-mode correctly handling the csh builtin commands "cd", "popd", and "pushd", especially when using an argument. The following commands seem not to work: % popd +2 % pushd +1 % pushd ^M In the last example, insert a bunch of spaces before hitting carriage return (^M). The function that handles capturing and tracking directory commands is `shell-set-directory' in lisp/shell.el. I've looked at this file and I can see why it doesn't accurately track these commands. There may be other forms which are also not correctly tracked. I'm using GNU Emacs 18.55.13 of Sat Sep 2 1989 on norman (berkeley-unix) Before I go ahead and hack a better shell-set-directory, I'm wondering if anybody already has. I seem to remember something being posted quite a while back, but I can't dig it up. Please email or post if you have something that works. Thanks. -Barry NAME: Barry A. Warsaw USMAIL: National Institute of Standards TELE: (301) 975-3460 and Technology (formerly NBS) UUCP: {...}!uunet!cme-durer!warsaw Rm. B-124, Bldg. 220 ARPA: warsaw@cme.nist.gov Gaithersburg, MD 20899