From ff0fcaf1b2a3b119c30088ff1f216eedc99a4c00 Mon Sep 17 00:00:00 2001 From: Timo Freiberg Date: Tue, 28 Apr 2015 16:25:10 +0200 Subject: [PATCH] Fix hasktags call for windows Using solution by ibgraimgm, proposed in issue #609 added path escaping --- haskell-commands.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/haskell-commands.el b/haskell-commands.el index 40c6ea9a2..1705f9ecd 100644 --- a/haskell-commands.el +++ b/haskell-commands.el @@ -658,9 +658,9 @@ command from GHCi." (if (eq system-type 'windows-nt) (haskell-process-send-string (car state) - (format ":!powershell -Command \"& { cd %s ; hasktags -e -x (ls -fi *.hs *.lhs *.hsc -exclude \\\"#*#\\\" -name -r) ; exit }\"" - (haskell-session-cabal-dir - (haskell-process-session (car state))))) + (format ":!hasktags --output=\"%s\\TAGS\" -x -e \"%s\"" + (haskell-session-cabal-dir (haskell-process-session (car state))) + (haskell-session-cabal-dir (haskell-process-session (car state))))) (haskell-process-send-string (car state) (format ":!cd %s && %s | %s"