Stephen J. Turnbull <stephen(a)xemacs.org>
If you want reliable parsing of the prompt, you are going to have to
dig into the $PROMPT environment variable, or whatever it is.
I think that fishing around for something that looks like the current
directory would be sufficient. It doesn't have to be perfect, just an
improvement on tracking 'cd' commands.
Ed> Once shell mode loses track of the current directory it
Ed> pick it up again unless you cd to an absolute path.
What's wrong with M-RET?
It doesn't always work, for example in a shell buffer running tcsh
the prompt shows:
I hit M-RET and this changes to
and the status line says 'No such directory: /u/avised/->'.
It seems that 'dirs' requires just as much knowledge of the shell as
looking at the prompt string - how do you know what it is going to
Ed Avis <ed.avis(a)kbcfp.com>