From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Paul A. Steckler" Newsgroups: gmane.emacs.bugs Subject: bug#24287: Process filters received stderr output, not documented Date: Mon, 22 Aug 2016 15:08:47 -0400 Message-ID: References: <83y43ofysz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1471893020 16045 195.159.176.226 (22 Aug 2016 19:10:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2016 19:10:20 +0000 (UTC) Cc: 24287@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 22 21:10:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1bbubv-0003sS-Fr for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Aug 2016 21:10:15 +0200 Original-Received: from localhost ([::1]:42781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbubs-0001NL-KM for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Aug 2016 15:10:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbubm-0001LN-PE for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 15:10:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbubi-0000sO-Hv for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 15:10:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbubi-0000sJ-DU for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 15:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bbubi-0008NE-3E for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 15:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Paul A. Steckler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Aug 2016 19:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24287-submit@debbugs.gnu.org id=B24287.147189296532138 (code B ref 24287); Mon, 22 Aug 2016 19:10:02 +0000 Original-Received: (at 24287) by debbugs.gnu.org; 22 Aug 2016 19:09:25 +0000 Original-Received: from localhost ([127.0.0.1]:37177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbub7-0008MI-01 for submit@debbugs.gnu.org; Mon, 22 Aug 2016 15:09:25 -0400 Original-Received: from mail-ua0-f177.google.com ([209.85.217.177]:35634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbub5-0008M6-7Q for 24287@debbugs.gnu.org; Mon, 22 Aug 2016 15:09:23 -0400 Original-Received: by mail-ua0-f177.google.com with SMTP id n59so206273591uan.2 for <24287@debbugs.gnu.org>; Mon, 22 Aug 2016 12:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=jle8z8SKXT/STP5dOFDELYTYLsJzGdrQQQgnRxOdNeg=; b=Z1upQ7IhZ/2+wDXn9HH8ZxtjAjGOGVrgQJnHSSgjGlUG1syotdJMqP8EK6YYy3JvTa jcPKlZgysSgRy3DAypmBNI9v/TOvrscvCp+mUyZv0g/v1neBDF0Y2+FxaOVLfi+EifM6 rKvYBhIe5XIhga73LtE9QwssZSDdOvuXsKx22WWfdVO0IeHwM1yCQYoqNvxGTC3JhzMd LeJriUmOURlypU4uW1PFxPa0s50daL7YQLbq8h1ilhqYOy18XM7mgNdHMibf0IQAGxa3 pKbSUQRaUy8SULAQZEzMj0w7yaw0LEmTnX7FZYaxms9gEzc9b0flRAtJYn3hYNZGfk+w OAjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=jle8z8SKXT/STP5dOFDELYTYLsJzGdrQQQgnRxOdNeg=; b=M/hrTPen2mK+zyuxx6YcmzEgREl1qbS+rr2OgIUqoFA56uzJsSoy/pKsSrS0dEVGHa /4zoa8QDmj7Z+XOBpwm9U2HEd0Nt9OqueEHNBuXxWd1e/HaW01kryJg312L+nJBOeaBQ JUL6Wvu99iHSKNz+gM6rjdhDmNJAbdBECaV69tdZcZ4GnVVgkaJY2ofGrFGoLVIWdw4k Bh9eNWvDEmawfmHCZUY0dpyTCwewS2DtZXCYyMZnl+5oabeGFhwAL8ZPkoNPpGT7n77A /GxlNIhkvOPN9LKAXA8ajpdgMJwY3g/5CnUOdnpeQKlWsoZ+2aCxnx1QcjD+cdSQlosy Ei2g== X-Gm-Message-State: AEkoouuEdaR8B/EHA2JhmM05OUw45CXLfyvEg6qkYPk5lajkoEx/fVr19E99QcRgXvsGnNMbKvB8qrZWOy4eJQ== X-Received: by 10.31.79.66 with SMTP id d63mr12352441vkb.96.1471892957610; Mon, 22 Aug 2016 12:09:17 -0700 (PDT) Original-Received: by 10.103.77.4 with HTTP; Mon, 22 Aug 2016 12:08:47 -0700 (PDT) In-Reply-To: <83y43ofysz.fsf@gnu.org> X-Google-Sender-Auth: I0v3V5KG9lzpxfkvB6-y5Kgx_AA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122520 Archived-At: That's true, but the documentation for filter functions is misleading. It specifically mentions the standard output of the associated process, but neglects to mention the standard error. Also, one might not see that earlier section when looking at the documentation for filter functions. I did not see that section, in fact, when using the manual to help me write my code. -- Paul On Mon, Aug 22, 2016 at 2:23 PM, Eli Zaretskii wrote: >> From: "Paul A. Steckler" >> Date: Mon, 22 Aug 2016 13:35:25 -0400 >> >> The documentation for Process Filter Functions mentions that process >> filters receive the standard output from their associated processes. It >> does not mention that the filters also receive standard error output. > > That is described in the parent section: > > It is impossible to separate the standard output and standard error > streams of the subprocess, because Emacs normally spawns the subprocess > inside a pseudo-TTY, and a pseudo-TTY has only one output channel. If > you want to keep the output to those streams separate, you should > redirect one of them to a file=E2=80=94for example, by using an appropr= iate > shell command.