]> code.delx.au - gnu-emacs/blobdiff - lisp/dirtrack.el
Doc fixes. Changes for compiler warnings.
[gnu-emacs] / lisp / dirtrack.el
index d8590f60adde96184c2c29ea825fbfb979b12b16..41aea04988beaf0cfe897a9ae72579465f66bc33 100644 (file)
@@ -5,7 +5,6 @@
 ;; Author: Peter Breton <pbreton@cs.umb.edu>
 ;; Created: Sun Nov 17 1996
 ;; Keywords: processes
-;; Time-stamp: <2003-01-31 16:15:05 jbarranquero>
 
 ;; This file is part of GNU Emacs.
 
@@ -212,6 +211,12 @@ and ends with a forward slash."
        (concat directory "/")
       directory)))
 
+(defun dirtrack-cygwin-directory-function (dir)
+  "Return a canonical directory taken from a Cygwin path for comparison purposes."
+  (if (string-match "/cygdrive/\\([A-Z]\\)\\(.*\\)" dir)
+      (concat (match-string 1 dir) ":" (match-string 2 dir))
+    dir))
+
 (defconst dirtrack-forward-slash  (regexp-quote "/"))
 (defconst dirtrack-backward-slash (regexp-quote "\\"))
 
@@ -329,4 +334,5 @@ You can enable directory tracking by adding this function to
 
 (provide 'dirtrack)
 
+;;; arch-tag: 168de071-be88-4937-aff6-2aba9f328d5a
 ;;; dirtrack.el ends here