changeset 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 a5691a22c92b
files .elisp/textmate.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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='"