Skip to content

Commit 900f864

Browse files
committed
Leave default-directory alone in stylish-haskell
1 parent 11b7b9c commit 900f864

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

haskell-commands.el

+1-5
Original file line numberDiff line numberDiff line change
@@ -795,11 +795,7 @@ Use buffer as input and replace the whole buffer with the
795795
output. If CMD fails the buffer remains unchanged."
796796
(set-buffer-modified-p t)
797797
(let* ((tmp-buf (generate-new-buffer "stylish-output"))
798-
(err-file (make-temp-file "stylish-error"))
799-
(default-directory (if (and (boundp 'haskell-session)
800-
haskell-session)
801-
(haskell-session-cabal-dir haskell-session)
802-
default-directory)))
798+
(err-file (make-temp-file "stylish-error")))
803799
(unwind-protect
804800
(let* ((_errcode
805801
(call-process-region (point-min) (point-max) cmd nil

0 commit comments

Comments
 (0)