fixing a bug of ghc-debug.
This commit is contained in:
parent
7fa3736bac
commit
2db2358a98
@ -49,8 +49,9 @@
|
|||||||
(let ((pro (ghc-get-process cpro name buf))
|
(let ((pro (ghc-get-process cpro name buf))
|
||||||
(cmd (funcall send)))
|
(cmd (funcall send)))
|
||||||
(process-send-string pro cmd)
|
(process-send-string pro cmd)
|
||||||
(ghc-with-debug-buffer
|
(when ghc-debug
|
||||||
(insert (format "%% %s" cmd)))))))))
|
(ghc-with-debug-buffer
|
||||||
|
(insert (format "%% %s" cmd))))))))))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
@ -77,9 +78,10 @@
|
|||||||
(when (looking-at "^\\(OK\\|NG\\)$")
|
(when (looking-at "^\\(OK\\|NG\\)$")
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(funcall ghc-process-callback)
|
(funcall ghc-process-callback)
|
||||||
(let ((cbuf (current-buffer)))
|
(when ghc-debug
|
||||||
(ghc-with-debug-buffer
|
(let ((cbuf (current-buffer)))
|
||||||
(insert-buffer-substring cbuf)))
|
(ghc-with-debug-buffer
|
||||||
|
(insert-buffer-substring cbuf))))
|
||||||
(setq ghc-process-running nil))))
|
(setq ghc-process-running nil))))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
Loading…
Reference in New Issue
Block a user