emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] Don't print "process finished" into the stderr buffer.


From: Philipp Stephani
Subject: Re: [PATCH 2/3] Don't print "process finished" into the stderr buffer.
Date: Mon, 22 Apr 2019 17:45:15 +0200

Am Mo., 22. Apr. 2019 um 17:27 Uhr schrieb Eli Zaretskii <address@hidden>:
>
> > From: Stefan Monnier <address@hidden>
> > Date: Mon, 22 Apr 2019 10:43:32 -0400
> > Cc: address@hidden
> >
> > > By "this behavior" do you mean only the "normal" case, or also the
> > > abnormal termination case, in which case we show the reason of the
> > > abnormal termination?
> >
> > The latter: there's no point showing the abnormal termination on both
> > outputs, I think.
>
> If it will show on both.  Are we sure it will?
>

A pipe can't terminate abnormally like a process, so the output will
always be "finished":

$ emacs -Q -batch -eval '(progn (make-process :name "test" :command
(list "/usr/bin/false") :stderr "*stderr*" :sentinel (function
ignore)) (sit-for 1) (with-current-buffer "*stderr*" (message "stderr
= %S" (buffer-string))))'
stderr = "
Process test stderr finished
"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]