all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* dirtrack (shell mode) not working
@ 2009-05-04  2:09 Samuel Wales
  2009-05-04  2:15 ` Samuel Wales
  0 siblings, 1 reply; 7+ messages in thread
From: Samuel Wales @ 2009-05-04  2:09 UTC (permalink / raw)
  To: help-gnu-emacs

Shell directory tracking fails to understand when I cd to a
symlink or do anything else that emacs cannot figure out.
Doing cd .. seems to make emacs think that pwd is above the
previous directory.  In the shell, for what it's worth, I
have this:

	#i like physical directories.  this might only be needed for bash.
	alias cd='cd -P'

I have tried various ways.  The following should work -- it
should read from the prompt, which looks like
"03-Sun-18-57-17 L4 ~/Desktop/A/alpha$ ".  The regular
expression works when performed manually, so it doesn't seem
to be an issue with text properties.

What am I doing wrong?

Thanks.

;;will need updating if change prompt in shell
;;(progn (search-backward-regexp (first dirtrack-list)) (match-string 1))
;;this re works, but dirtrack does not actualy use the prompt :(
(setq-default dirtrack-list '("^[0-9][0-9]-.* L[0-9] \\(.*\\)[$#] " 1))
(add-to-list 'comint-output-filter-functions 'dirtrack)

(setf comint-buffer-maximum-size (* 10 1000))
(add-to-list 'comint-output-filter-functions 'comint-truncate-buffer)

(ansi-color-for-comint-mode-on)

-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering
worse than MS.  Conflicts of interest are destroying science.  Anybody can
get the disease at any time permanently.  Do science and justice matter to
you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-05-05  8:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-04  2:09 dirtrack (shell mode) not working Samuel Wales
2009-05-04  2:15 ` Samuel Wales
2009-05-04  8:53   ` Peter Dyballa
2009-05-04 16:44     ` Samuel Wales
2009-05-04 19:51       ` Peter Dyballa
2009-05-04 22:03         ` Samuel Wales
2009-05-05  8:11           ` Peter Dyballa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.