From 4203cc66f6a5e392d0eb376727ab57a7e303b6b8 Mon Sep 17 00:00:00 2001 From: Ivan Lazar Miljenovic Date: Tue, 17 Mar 2015 16:26:46 +1100 Subject: [PATCH] No need to specify a directory when calling cabal-find-file It defaults to the directory of the current buffer already. --- haskell-cabal.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haskell-cabal.el b/haskell-cabal.el index 971f41125..283bbbf72 100644 --- a/haskell-cabal.el +++ b/haskell-cabal.el @@ -180,7 +180,7 @@ there is no corresponding setting with that name in the .cabal file), then this function returns nil." (interactive) (when (and name buffer-file-name) - (let ((cabal-file (haskell-cabal-find-file (file-name-directory buffer-file-name)))) + (let ((cabal-file (haskell-cabal-find-file))) (when (and cabal-file (file-readable-p cabal-file)) (with-temp-buffer (insert-file-contents cabal-file)