I'm using emacs version 25.1.1.
I would like to run a process synchronously and have its stdout and stderr end up in two different buffers. I know I can use make-process
to separate stdout and stderr in this way, but make-process
runs the process asynchronously.
For synchronous process invocation, I know I could use call-process
with DESTINATION being set to (list stdout-buffer stderr-file)
, but then I would have to manage a temporary file to catch the stderr output, and that is inefficient.
Is there any function in emacs 25.x which will allow me to run a process synchronously with its stdout and stderr ending up in different buffers?
I also see this question being raised within a comment that was posted at the end of Capturing stderr of subprocesses more than 2 years after the original query, but it isn't answered there. Perhaps that short comment was overlooked, and that's why I'm posting this as a full-fledged question here.
Thank you in advance.