Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!asuvax!noao!amethyst!rsm From: rsm@math.arizona.edu (Robert S. Maier) Newsgroups: comp.emacs Subject: Re: cmushell-mode Message-ID: Date: 26 Feb 90 01:41:17 GMT References: Organization: University of Arizona Mathematics Department Lines: 31 In-reply-to: shivers@cs.cmu.edu's message of 25 Feb 90 06:34:17 GMT In article Olin Shivers writes, apropos of cmushell-mode and shell-mode getting confused by `cd' commands: >It is not possible to reliably track the current working directory >100% of the time. Forget it. It's certainly not possible with shell-cd-regexp, which is a bit of a hack. But in cmushell.el, authored by Olin Shivers, I find an intriguing alternative suggestion: ;;; The right way would be to hack the shell so that when it changes ;;; its pwd, for any reason, it notifies emacs via some ipc channel or ;;; something. This sounds like a very good idea. Has anyone actually implemented it? Are there any other pieces of the inferior shell's internal state, besides the current directory, that it would be desirable for Emacs to know about? Perhaps the IPC channel should really be two-way, so that the shell can respond to arbitrary queries about its current state. BASH developers, please note... -- Robert S. Maier | Internet: rsm@math.arizona.edu [128.196.128.99] Dept. of Math. | UUCP: ..{allegra,cmcl2,hao!noao}!arizona!amethyst!rsm Univ. of Arizona | Bitnet: maier@arizrvax Tucson, AZ 85721 | FAX: +1 602 621 8322 U.S.A. | Voice(POTS): +1 602 621 6893 / +1 602 621 2617