ghc-debug for ghc-process.
This commit is contained in:
parent
b49bb4d5ab
commit
9906ee137b
@ -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))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
Loading…
Reference in New Issue
Block a user