# HG changeset patch # User Augie Fackler # Date 1261023523 21600 # Node ID 2f865a7f84e63c23e75fa21bfab668725dc016fb # Parent 98000a1107bf23a0f56b52d94d8e28178ad95db8 textmate: do not trust cached project root of $HOME diff --git a/.elisp/textmate.el b/.elisp/textmate.el --- a/.elisp/textmate.el +++ b/.elisp/textmate.el @@ -423,7 +423,8 @@ specific type of file." "Returns the current project root." (when (or (null *textmate-project-root*) - (not (string-match *textmate-project-root* default-directory))) + (not (string-match *textmate-project-root* default-directory)) + (not (string-match *textmate-project-root* (getenv "HOME")))) (let ((root (textmate-find-project-root))) (if root (setq *textmate-project-root* (expand-file-name (concat root "/")))