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

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

[nongnu] elpa/haskell-ts-mode bd85e76757 54/61: Fixed commint mode, as e


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-ts-mode bd85e76757 54/61: Fixed commint mode, as eariler ones did not work
Date: Wed, 4 Sep 2024 04:00:32 -0400 (EDT)

branch: elpa/haskell-ts-mode
commit bd85e7675788798d6535c3ee091870eaed002a9c
Author: pranshu <pranshusharma366@gmail.com>
Commit: pranshu <pranshusharma366@gmail.com>

    Fixed commint mode, as eariler ones did not work
---
 haskell-ts-mode.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el
index 15ad8e79a9..c0d3614c37 100644
--- a/haskell-ts-mode.el
+++ b/haskell-ts-mode.el
@@ -380,10 +380,9 @@
 
 (defun haskell-ts-run-haskell()
   (interactive)
-  (pop-to-buffer-same-window           ;really in the same window?
-   (or
-    (comint-check-proc "*haskell*")
-    (make-comint "*haskell* repl" "ghci" nil buffer-file-name)))
+  (when (not (comint-check-proc "*haskell*"))
+    (set-buffer (apply (function make-comint)
+                       "haskell" "ghci" nil `(,buffer-file-name))))
   (pop-to-buffer-same-window "*haskell*"))
 
 (defun haskell-ts-haskell-session ()



reply via email to

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