Skip to content

Commit

Permalink
Fix checking the haskell-session is bound in stylish-buffer (fixes #66).
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Jul 18, 2012
1 parent 1c078d4 commit 73ef95a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haskell-mode.el
Expand Up @@ -767,7 +767,8 @@ This function will be called with no arguments.")
buffer remains unchanged." buffer remains unchanged."
(let* ((file (buffer-file-name (current-buffer))) (let* ((file (buffer-file-name (current-buffer)))
(output (with-temp-buffer (output (with-temp-buffer
(let ((default-directory (if haskell-session (let ((default-directory (if (and (boundp 'haskell-session)
haskell-session)
(haskell-session-cabal-dir haskell-session) (haskell-session-cabal-dir haskell-session)
default-directory))) default-directory)))
(call-process cmd (call-process cmd
Expand Down

0 comments on commit 73ef95a

Please sign in to comment.