branch: elpa/flymake-collection commit 023227cdcbd10306209ea66d65800cb29ffea238 Author: Mohsin Kaleem <mohk...@kisara.moe> Commit: Mohsin Kaleem <mohk...@kisara.moe>
define: Only send region to process if its alive --- src/flymake-collection-define.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/flymake-collection-define.el b/src/flymake-collection-define.el index 0048b69ffa..72557687fc 100644 --- a/src/flymake-collection-define.el +++ b/src/flymake-collection-define.el @@ -308,8 +308,9 @@ exit status %d\nStderr: %s" (plist-put flymake-collection-define--procs ',name ,proc-symb)) ;; If piping, send data to the process. ,@(when (eq write-type 'pipe) - `((process-send-region ,proc-symb (point-min) (point-max)) - (process-send-eof ,proc-symb))) + `((when (process-live-p ,proc-symb) + (process-send-region ,proc-symb (point-min) (point-max)) + (process-send-eof ,proc-symb)))) ;; Return value of syntax-checker is checker function. ,proc-symb))))))