From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add facility to collect stderr of async subprocess Date: Thu, 6 Oct 2016 17:37:05 +0900 (JST) Message-ID: References: <83pp87y6iu.fsf@gnu.org> <83mw3bxz9f.fsf@gnu.org> <83k2yfx8zi.fsf@gnu.org> <83egomxog1.fsf@gnu.org> <83ego5tjgt.fsf@gnu.org> <877ftno4fr.fsf-ueno@gnu.org> <55247A98.5020302@cs.ucla.edu> <83r3rvgn4e.fsf@gnu.org> <877ftja89d.fsf-ueno@gnu.org> <87wphnwh2q.fsf@gmail.com> <83zimjl1zp.fsf@gnu.org> <83vax7l00s.fsf@gnu.org> <83y422j7br.fsf@gnu.org> <83vax5kj2m.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1475743089 9487 195.159.176.226 (6 Oct 2016 08:38:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2016 08:38:09 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: jwiegley@gmail.com, Emacs developers , michael.albinus@gmx.de, Tino Calancha To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 06 10:38:04 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bs4Bi-0001Eg-W7 for ged-emacs-devel@m.gmane.org; Thu, 06 Oct 2016 10:37:59 +0200 Original-Received: from localhost ([::1]:53990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bs4Bh-0003JY-KN for ged-emacs-devel@m.gmane.org; Thu, 06 Oct 2016 04:37:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bs4B3-0003J1-IA for emacs-devel@gnu.org; Thu, 06 Oct 2016 04:37:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bs4B1-0007qa-Ds for emacs-devel@gnu.org; Thu, 06 Oct 2016 04:37:16 -0400 Original-Received: from mail-pa0-x244.google.com ([2607:f8b0:400e:c03::244]:36431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bs4Aw-0007oz-Bv; Thu, 06 Oct 2016 04:37:10 -0400 Original-Received: by mail-pa0-x244.google.com with SMTP id cd13so783249pac.3; Thu, 06 Oct 2016 01:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=A74yJDJbLN1N6cwjiG/rkHmDvsv+KuuWE4LXp1jeTek=; b=wtiTSJNwKntKjnkup/H6uc8B1NITkijF5HN3xuHVZmDqqAYus0LmNNDsBVZl0Hj4ft o8rQXBYE/3qi4QlvuKSLzpYAGVTPm2BYPnhUn39STlZB8liadn+fEp6faUPOFMEASaHc W6HrIrNgSaeZ8vstJvqE4eBSKHAXRfVt3bjBnS3zS1EqSym9P7lLQCPt/zvdFymUW9s4 BK5voKOzU7y9JKXmxlbj1B4Q6rFwHAfHUOUfxug1reEUQ5Yjl6+pUFyOIjQn6JUZ0Hv0 Z7Lj6w94pnE/3AiO85ES6oCyAiUZIReje9nIeENMF/rYNudWwmHkJD5BoHFmwuYGA4jF 0WGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=A74yJDJbLN1N6cwjiG/rkHmDvsv+KuuWE4LXp1jeTek=; b=mHmV8nxuN/66FDi8IDtRgTp9g/eoxlXDNJ4Y8Z1FRTYVAIazE/SAbDx0VDbl2ViwNh X2boYI/R3n+2Elk9KxbZ116Mc1hJp6TBhHFKID/5x1iOhfm6+eTmAwj0IbGX7+kwFSsN kCD9qZBBWcCB5YWP5wSdANyH4aI26vbCVUTNQnj1QJIglJeFv+e0Trg3VUC9n66MLoWS Amwmz5BxJtIxCqcknCnSFxrtlZFKcJUSPIAdqnorDgOeDPr6D/Bz0g1papb9uFpMlSbf CagkDF9jpH2+db5YomZbvrYPzIo0ahaAt4k7ohZ/fORWRuub8kwzPpFPWU6INKKkKxQl LgPA== X-Gm-Message-State: AA6/9RnmdNcy4S4f8T9siwITImzJ4ZckTds0Tbc6ZOny+ViofiVAY2kUFToDL++E15VZYA== X-Received: by 10.66.121.49 with SMTP id lh17mr19674666pab.191.1475743029475; Thu, 06 Oct 2016 01:37:09 -0700 (PDT) Original-Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id yg10sm20369369pab.8.2016.10.06.01.37.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Oct 2016 01:37:08 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <83vax5kj2m.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::244 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:208026 Archived-At: On Thu, 6 Oct 2016, Eli Zaretskii wrote: >> From: Tino Calancha >> Date: Thu, 6 Oct 2016 16:25:39 +0900 (JST) >> cc: Tino Calancha , jwiegley@gmail.com, >> emacs-devel@gnu.org, michael.albinus@gmx.de >> >> As a bonus, several other functions will automatically inherit this >> feature: `start-file-process', `start-process-shell-command', and >> `start-file-process-shell-command'. > > As Micheal explained, start-file-process and > start-file-process-shell-command cannot inherit this without some > non-trivial coding for the remote case. Fair enough, but it wouldn't be the first time that we get more locally compared with remote, for instance: Bug#24394 or https://lists.gnu.org/archive/html/tramp-devel/2015-12/msg00000.html >> Personally, i find pleasant if every function creating an asynchronous >> process us able to separate stdout from stderr. > > Actually, the need in this separation is rather rare. Which is not > surprising, since running commands from a terminal by default delivers > both stdout and stderr to the screen, and the cases where these are > redirected separately are rare. It depends of what the user is doing. `shell-command' and `async-shell-command' have being offering that since long time ago. It is quite common redirect stderr from a shell: all shells allow that AFAIK. In Emacs, there is the idiom that everything is a buffer, so redirecting stderr to a buffer instead of a file (as `call-process') seems the natural thing. Or maybe I'm missing something.