:type 'function
)
+(defcustom dirtrack-directory-change-hook nil
+ "Hook that is called when a directory change is made."
+ :group 'dirtrack
+ :type 'function
+ )
+
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Functions
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(and dirtrack-debug
(dirtrack-debug-message
(format
- "Failed to match regexp: %s"
- dirtrack-regexp)))
+ "Input `%s' failed to match regexp: %s"
+ input dirtrack-regexp)))
(setq prompt-path
(buffer-substring-no-properties
(match-beginning match-num) (match-end match-num)))
(if (file-accessible-directory-p prompt-path)
;; Change directory
(and (shell-process-cd prompt-path)
+ (run-hooks dirtrack-directory-change-hook)
dirtrack-debug
(dirtrack-debug-message
(format "Changing directory to %s" prompt-path)))