In emacs' shell I am using dirtrack-mode (M-x dirtrack-mode
). I get errors in the *Directory Tracking Log*
buffer:
Input `user@machine:~/modules/mydir> ' failed to match `dirtrack-list'
In order to solve it I am trying to set the dirtrack-list
variable to tell emacs the form of my prompt with no luck. This is mainly because I don't understand this variable's documentation:
dirtrack-list's value is
("^emacs ^.\\{1,\\}@.\\{1,\\}:.+> " nil)
Automatically becomes buffer-local when set in any fashion.
Documentation: List for directory tracking. First item is a regexp that describes where to find the path in a prompt. Second is a number, the regexp group to match. Optional third item is whether the prompt is multi-line. If nil or omitted, prompt is assumed to be on a single line.
Can anyone explain to me which is the first, the second and the third item? How can I tell emacs which part of the prompt is the path?