Matthieu Moy <[EMAIL PROTECTED]> writes:
> Stephen Leake <[EMAIL PROTECTED]> writes:
>
>> It turns out that start-process arranges for both stderr and stdout to
>> go to the buffer; I tested it. I'll suggest on the emacs-devel list
>> that the manual be updated.
>>
>>>>> So dvc-run-dvc-async explicitly spawns "sh", rather than the backend
>>>>> executable.
>>
>> So this is actually unnecessary. I'll try changing it. That may have
>> other consequences; we'll see.
>
> I don't understand how this becomes unnecessary. You're just saying
> above that stdout and stderr go to the same buffer, and we want them
> to go to different ones. I must have missed something.
Ah. I misunderstood what the redirection 2> was doing. I don't use the
shell much.
The dvc-run-dvc-async does:
(start-process
(dvc-variable dvc "executable") output-buf
"sh" "-c"
(format "%s 2> %s"
command error-file))))
start-process sends both stderr and stdout to a single buffer. (It
turns out that is documented in the elisp manual; see the node "output
from processes".)
So this shell command redirects stderror to error-file before Emacs
sends it to a buffer.
So I had it backwards; I thought calling "sh" explicitly was there to
combine stderr and stdout, but it's actually there to separate them.
I'll add a comment that explains that.
--
-- Stephe
_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev