If there a way to read the output of a subprocess line by line, or at least to get it in small batches?
I have a subprocess doing work in the background, and printing a line every time it completes a task. There are many such small tasks, so I would like to show a progress indicator; unfortunately, my filter function receives output in batches of 10 to 20 lines, which makes the progress display much more jittery than it really is.
When I run that same process as a
compile process, the output is displayed smoothly; I can't figure the trick that
compilation-mode uses to achieve this.