ghc-debug for ghc-process.

This commit is contained in:
Kazu Yamamoto 2014-03-27 13:10:43 +09:00
parent b49bb4d5ab
commit 9906ee137b

View File

@ -46,8 +46,11 @@
(setq ghc-process-original-file file)
(setq ghc-process-callback callback)
(erase-buffer)
(let ((pro (ghc-get-process cpro name buf)))
(process-send-string pro (funcall send))))))))
(let ((pro (ghc-get-process cpro name buf))
(cmd (funcall send)))
(process-send-string pro cmd)
(ghc-with-debug-buffer
(insert (format "%% %s" cmd)))))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -74,6 +77,9 @@
(when (looking-at "^\\(OK\\|NG\\)$")
(goto-char (point-min))
(funcall ghc-process-callback)
(let ((cbuf (current-buffer)))
(ghc-with-debug-buffer
(insert-buffer-substring cbuf)))
(setq ghc-process-running nil))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;