From b9e316dd7fab2adca0cd51b51332d708852d6c30 Mon Sep 17 00:00:00 2001 From: Peter Breton Date: Sat, 22 Mar 2003 12:49:03 +0000 Subject: [PATCH] Remove timestamp Add dirtrack-cygwin-directory-function --- lisp/dirtrack.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/dirtrack.el b/lisp/dirtrack.el index d8590f60add..75fbf244f9d 100644 --- a/lisp/dirtrack.el +++ b/lisp/dirtrack.el @@ -5,7 +5,6 @@ ;; Author: Peter Breton ;; 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 "\\")) -- 2.39.2