Skip to content

Commit

Permalink
promise:make-process: get rid of "Process Finished" lines
Browse files Browse the repository at this point in the history
  • Loading branch information
bendlas committed Jun 7, 2019
1 parent 055ad69 commit 4da9708
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion promise.el
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,10 @@ with (stdout stderr) on success and with (event stdout stderr) on error."
(stderr-pipe (make-pipe-process
:name (concat "*" program "-stderr-pipe*")
:noquery t
:buffer stderr))
;; use :filter instead of :buffer, to get rid of "Process Finished" lines
:filter (lambda (_ output)
(with-current-buffer stderr
(insert output)))))
(cleanup (lambda ()
(delete-process stderr-pipe)
(kill-buffer stdout)
Expand Down

0 comments on commit 4da9708

Please sign in to comment.