From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#24287: Process filters received stderr output, not documented Date: Mon, 22 Aug 2016 14:38:01 -0400 Message-ID: <7cd34931-18e2-3961-f958-49606d9afb1f@gmail.com> References: <83y43ofysz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="01OQbdWAoGSdKiXQhiebemVxddSbu7Arw" X-Trace: blaine.gmane.org 1471891162 26487 195.159.176.226 (22 Aug 2016 18:39:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2016 18:39:22 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 To: 24287@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 22 20:39:18 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 1bbu7y-0006mx-1X for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Aug 2016 20:39:18 +0200 Original-Received: from localhost ([::1]:42704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbu7v-0002dL-Dy for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Aug 2016 14:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbu7m-0002b8-Bq for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 14:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbu7i-0002pL-67 for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 14:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbu7i-0002pA-2s for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 14:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bbu7h-0007bG-T6 for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 14:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Aug 2016 18:39:01 +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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147189110629171 (code B ref -1); Mon, 22 Aug 2016 18:39:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Aug 2016 18:38:26 +0000 Original-Received: from localhost ([127.0.0.1]:37164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbu77-0007aR-VF for submit@debbugs.gnu.org; Mon, 22 Aug 2016 14:38:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbu76-0007aD-0X for submit@debbugs.gnu.org; Mon, 22 Aug 2016 14:38:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbu6z-0002hX-PX for submit@debbugs.gnu.org; Mon, 22 Aug 2016 14:38:18 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbu6z-0002hF-MW for submit@debbugs.gnu.org; Mon, 22 Aug 2016 14:38:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbu6x-0002GO-IV for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 14:38:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbu6t-0002fY-Cb for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 14:38:14 -0400 Original-Received: from mout.kundenserver.de ([217.72.192.73]:51897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbu6t-0002fO-2f; Mon, 22 Aug 2016 14:38:11 -0400 Original-Received: from [18.189.127.88] ([18.189.127.88]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MMnFv-1bVbFW1Kv9-008bye; Mon, 22 Aug 2016 20:38:09 +0200 In-Reply-To: <83y43ofysz.fsf@gnu.org> X-Provags-ID: V03:K0:jzy3a+MMHd34gz6O+9XlvaAc1pI+sO9A8+vTDVOmvyO6QUVtGrg NJlzC5t4+8r5OFo4gyUBiMHAr5rT32xQg7TfTErDiRZE0/aew9gyObETne+MyBwn0ShoEMv WY2xVP6fcenW8FK/HSRs4xm6W7ggt+gLxPJp3y/Bv6QtE9PMsPe6PvMyuvCQxxA0UJGt/Ro jQUyUxGjM4FzNIjEYZseA== X-UI-Out-Filterresults: notjunk:1;V01:K0:IJ8pxQ/JdbM=:JkdB4og79yqCtsjAW8Nm1Z qUNMlUG8vBAyS+8ElBxHIwFkiGjAOO1Y/781FHIsTAy/aNIaMn6J7ecutKzlb9n6F6O8ZSkRE HbrmJNp8/2iabpF6AI5k8+d441w8h+7XeYvXXaA6WGkz9nWc/kjh8EeyP4SPLg4erKJDUAmpq c0Ivx8giMHUB5c25MvLJLxWbAPg2ehMUBbOC/DZ69xwNkbaZL5+F8W0iXbnd9hYfrGveolOyq NJqLWjSfZQ6tg1Iry8lylH5vH0BpIaW4F4sga1Uv7pWMkK62BQw4Adh33ZTa9xKXsmke+U4qY NP4QynnKuLOjASaeSJbzz3p4752EcqOlKFBs94dWnjcEsh7YkJF+FcJmv1bGlFTOFYyXd9wWq XgcxRoZ+jWzP6NSTYr1SC3Xd+2HuNWvngLlZKN78RkhsNPJTm6nLkRPEoRLVeeAYyrJRTEmCg hjJPuK/hb4JNoRF7AaXVbYvVZgjbSgHJl+jHMBq4s1eRa/vpGAMsjb63dYkaYzmUPpOIvUDpw 2LL4UDNFFGProewEh+9EkKISUTumeWIX2rJkLzZhacqtoYwUDXERjcCRCBla5ZRjOBbc9EcUL 6eNjZeuVIStvVaZ7WaMPjMb/nVZhCQ8NTBhcGAuw1GRZf1d5o0226ZBHPIL8rdLjGTvSKY6Db BS2w3xgQqpeIHlxWfl/VIztTeWIbR0WGfAGBWsySvjDJzkxBtcymE4fm0mmdNEUd0SAU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:122518 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --01OQbdWAoGSdKiXQhiebemVxddSbu7Arw Content-Type: multipart/mixed; boundary="SHfEQSwGt1FAxa2cCQsnrMjulBsg1Ccp8" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: bug-gnu-emacs@gnu.org Cc: Eli Zaretskii Message-ID: <7cd34931-18e2-3961-f958-49606d9afb1f@gmail.com> Subject: Re: bug#24287: Process filters received stderr output, not documented References: <83y43ofysz.fsf@gnu.org> In-Reply-To: <83y43ofysz.fsf@gnu.org> --SHfEQSwGt1FAxa2cCQsnrMjulBsg1Ccp8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2016-08-22 14:23, 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. I= t >> does not mention that the filters also receive standard error output. >=20 > That is described in the parent section: >=20 > It is impossible to separate the standard output and standard erro= r > streams of the subprocess, because Emacs normally spawns the subproce= ss > inside a pseudo-TTY, and a pseudo-TTY has only one output channel. I= f > 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 appro= priate > shell command. Still, even the parent section could be confusing: The output that a subprocess writes to its standard output stream = is ^^^^^^^^^^^^^^^ passed to a function called the =E2=80=9Cfilter function=E2=80=9D. T= he default filter function simply inserts the output into a buffer, which is called the= associated buffer of the process (*note Process Buffers::). If the p= rocess has no buffer then the default filter discards the output. The highlighted section is not true, is it? Cl=C3=A9ment. --SHfEQSwGt1FAxa2cCQsnrMjulBsg1Ccp8-- --01OQbdWAoGSdKiXQhiebemVxddSbu7Arw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXu0aPAAoJEPqg+cTm90wjwbIP/AgfeA5ksPYP1m9RlYBAHvNm 2AwTawdlfEbbxNn+56qauC59TBYNcFDmPAaPz8jq6g5TzAxmkulEqK0TMO2RV0if VSEA7XnjGCmsHBhE74YsEQkdLkl5a/xwqxXHgs6PwMtfQ1bIsWFXGhsUdK9ow54T pjC0Ya2MKFuPBTPa0S+odorDIFXMzkApQp93+j/FiXtTBM+21YdKcC+8xXu6Lyrc gq0HAPPk4+27Mt0grbR9XTv257B0ykZ0AV/NiGnq2ow+bJMks+/6jPTDfx9AcYZa vP5XDfSiW5z469E3qGBeWdA96uq8w70BNBHFNYvS1+6clwM67euWU4KWsY2h0037 bmETUc6h6EM5XLYHEMIzz/C/aWwOHsyrHgbDJg1RHQQ+Kx0BZSunsP9hZ6jmjTPi 4mC+/qpBlEjRfRclwO/vTRiu/VxBHH5STmTqNNgK0qfxGU4Nllm4iLvu3P2qIeLO +i6mhkVAOvAcQkXBdOloSpmImjguruAaRJ/3zXZNm/ma3LC/j5glqLLpR1/dSdsw Akh/yTGUl6sEwCf4p4KhQduPVA3UlpF63t8IVbp/3+1Q3CxoW6Lx0m8SXNcumj74 mhfkiQSMuhpwH1uWjajOPEOu15PTSFYXy8iA/RR2gVMJFLLsCd3cj7oPX0G8rHyj 7DBpIzFXDf/uNNbcuD+n =oVvm -----END PGP SIGNATURE----- --01OQbdWAoGSdKiXQhiebemVxddSbu7Arw--