diff options
| author | Peter Breton | 2003-03-22 12:49:03 +0000 |
|---|---|---|
| committer | Peter Breton | 2003-03-22 12:49:03 +0000 |
| commit | b9e316dd7fab2adca0cd51b51332d708852d6c30 (patch) | |
| tree | e316115f6d834e6a4e4aff5c9681739a0b6ed25a | |
| parent | 570896112a3e2aa6a1d90d398d6932c780545575 (diff) | |
| download | emacs-b9e316dd7fab2adca0cd51b51332d708852d6c30.tar.gz emacs-b9e316dd7fab2adca0cd51b51332d708852d6c30.zip | |
Remove timestamp
Add dirtrack-cygwin-directory-function
| -rw-r--r-- | lisp/dirtrack.el | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ | |||
| 5 | ;; Author: Peter Breton <pbreton@cs.umb.edu> | 5 | ;; Author: Peter Breton <pbreton@cs.umb.edu> |
| 6 | ;; Created: Sun Nov 17 1996 | 6 | ;; Created: Sun Nov 17 1996 |
| 7 | ;; Keywords: processes | 7 | ;; Keywords: processes |
| 8 | ;; Time-stamp: <2003-01-31 16:15:05 jbarranquero> | ||
| 9 | 8 | ||
| 10 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 11 | 10 | ||
| @@ -212,6 +211,12 @@ and ends with a forward slash." | |||
| 212 | (concat directory "/") | 211 | (concat directory "/") |
| 213 | directory))) | 212 | directory))) |
| 214 | 213 | ||
| 214 | (defun dirtrack-cygwin-directory-function (dir) | ||
| 215 | "Return a canonical directory taken from a Cygwin path for comparison purposes." | ||
| 216 | (if (string-match "/cygdrive/\\([A-Z]\\)\\(.*\\)" dir) | ||
| 217 | (concat (match-string 1 dir) ":" (match-string 2 dir)) | ||
| 218 | dir)) | ||
| 219 | |||
| 215 | (defconst dirtrack-forward-slash (regexp-quote "/")) | 220 | (defconst dirtrack-forward-slash (regexp-quote "/")) |
| 216 | (defconst dirtrack-backward-slash (regexp-quote "\\")) | 221 | (defconst dirtrack-backward-slash (regexp-quote "\\")) |
| 217 | 222 | ||