emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/haskell-tng-mode a7098e8 194/385: stylish haskell outputs


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-tng-mode a7098e8 194/385: stylish haskell outputs failures
Date: Tue, 5 Oct 2021 23:59:30 -0400 (EDT)

branch: elpa/haskell-tng-mode
commit a7098e829dc1d4827ed79978d5980d3f3b7bbc4f
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>

    stylish haskell outputs failures
---
 haskell-tng-contrib.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/haskell-tng-contrib.el b/haskell-tng-contrib.el
index c133b76..5bc1f2e 100644
--- a/haskell-tng-contrib.el
+++ b/haskell-tng-contrib.el
@@ -20,7 +20,8 @@
   "Apply `stylish-haskell' rules."
   (interactive)
   (save-buffer)
-  (call-process "stylish-haskell" nil nil nil "-i" buffer-file-name)
+  (unless (= 0 (call-process "stylish-haskell" nil "*stylish-haskell*" nil 
"-i" buffer-file-name))
+    (pop-to-buffer "*stylish-haskell*" nil t))
   (revert-buffer t t t))
 
 ;;;###autoload



reply via email to

[Prev in Thread] Current Thread [Next in Thread]