diff --git a/Main.hs b/Main.hs
--- a/Main.hs
+++ b/Main.hs
@@ -399,13 +399,13 @@
       _ -> return conf
     -- filter empty strings
     let conf'' = conf' { hhFiles = filter (/= "") $ hhFiles conf' }
-    lineInfo <- if hhTagstype conf'' == EmacsTags
-                then emacsLineInfo $ hhFiles conf''
-                else return Map.empty
     conf''' <- if hhRecurse conf''
               then recursiveFiles (hhFiles conf'') (hhExcludes conf'')
                    >>= \fs -> return (conf'' { hhFiles = fs })
               else return conf''
+    lineInfo <- if hhTagstype conf''' == EmacsTags
+                then emacsLineInfo $ hhFiles conf'''
+                else return Map.empty
     database <- makeDatabase exts conf'''
     let (fMakeTags, fSort) = if hhTagstype conf''' == EmacsTags
                              then (makeEmacsTags, id)
diff --git a/hothasktags.cabal b/hothasktags.cabal
--- a/hothasktags.cabal
+++ b/hothasktags.cabal
@@ -1,5 +1,5 @@
 name: hothasktags
-version: 0.3.6
+version: 0.3.7
 cabal-version: >= 1.6
 build-type: Simple
 author: Luke Palmer <lrpalmer@gmail.com>
