diff .elisp/textmate.el @ 30:43e751bdedeb

Latest textmate.el - fixed a bug in find in type.
author Augie Fackler <durin42@gmail.com>
date Fri, 02 Jan 2009 14:41:02 -0600
parents e5f414619ea7
children 60dbe5b005cc
line wrap: on
line diff
--- a/.elisp/textmate.el
+++ b/.elisp/textmate.el
@@ -219,7 +219,9 @@
                            " ; "
                            (cond ((string= type "git") "git ls-files")
                                  ((string= type "hg") "hg manifest"))
-                           " | xargs grep -nR '" re "'"))
+                           " | xargs grep -nR "
+                           (if pattern (concat " --include='" pattern "' ") "")
+                           "'" re "'"))
                   (t (concat "cd " root "; egrep -nR --exclude='"
                             *textmate-gf-exclude*
                             "' --include='"