From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 3b4e312: Improve documentation around standard error pipes (Bug#35328). Date: Tue, 23 Apr 2019 08:45:10 +0300 Message-ID: <83d0ld5l7d.fsf@gnu.org> References: <20190422140753.20611.97812@vcs0.savannah.gnu.org> <20190422140756.5C1042088F@vcs0.savannah.gnu.org> <87h8apbvu2.fsf@gmx.de> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="112124"; mail-complaints-to="usenet@blaine.gmane.org" Cc: phst@google.com, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 23 07:46:07 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIoFq-000T3D-7n for ged-emacs-devel@m.gmane.org; Tue, 23 Apr 2019 07:46:06 +0200 Original-Received: from localhost ([127.0.0.1]:48544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIoFo-00013r-Ue for ged-emacs-devel@m.gmane.org; Tue, 23 Apr 2019 01:46:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIoF8-00013l-4f for emacs-devel@gnu.org; Tue, 23 Apr 2019 01:45:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIoF5-0006Ox-7K; Tue, 23 Apr 2019 01:45:20 -0400 Original-Received: from [176.228.60.248] (port=4322 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hIoF4-0003fF-M4; Tue, 23 Apr 2019 01:45:19 -0400 In-reply-to: <87h8apbvu2.fsf@gmx.de> (message from Michael Albinus on Mon, 22 Apr 2019 22:59:01 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235797 Archived-At: > From: Michael Albinus > Date: Mon, 22 Apr 2019 22:59:01 +0200 > Cc: Philipp Stephani > > > +@cindex standard error process > > +If @var{stderr} is a buffer, Emacs will create a pipe process, the > > +@dfn{standard error process}. This process will have the default > > +filter (@pxref{Filter Functions}), sentinel (@pxref{Sentinels}), and > > +coding systems (@pxref{Default Coding Systems}). On the other hand, > > +it will use @var{query-flag} as its query-on-exit flag (@pxref{Query > > +Before Exit}). It will be associated with the @var{stderr} buffer > > +(@pxref{Process Buffers}) and send its output (which is the standard > > +error of the main process) there. > > FTR, the implementation in Tramp is different from what is described > here. And honestly, I even don't know, how to implement these two > processes for the remote case. > > The current implementation in Tramp redirects stderr to a temporary > file, if it is separate from stdout. This temprary file is associated > with the :stderr buffer, and it runs auto-revert-mode. Maybe not very > elegant, but working so far. > > I don't know whether we shall document this different behavior, or > whether we shall find an implementation in Tramp for what is > described. For the latter, I would need help, as said. Or at least ideas. I think we should at least qualify the above description with its being accurate for local processes only.