From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 22 14:05:42 2016 Received: (at submit) by debbugs.gnu.org; 22 Aug 2016 18:05:43 +0000 Received: from localhost ([127.0.0.1]:37122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbtbS-0006m5-Le for submit@debbugs.gnu.org; Mon, 22 Aug 2016 14:05:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbt8q-00065V-Pt for submit@debbugs.gnu.org; Mon, 22 Aug 2016 13:36:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbt8j-0004Sv-Hr for submit@debbugs.gnu.org; Mon, 22 Aug 2016 13:36:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbt8j-0004Sr-Eb for submit@debbugs.gnu.org; Mon, 22 Aug 2016 13:36:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbt8h-0001xN-Eg for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 13:36:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbt8f-0004RJ-Gd for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 13:35:59 -0400 Received: from mail-ua0-x235.google.com ([2607:f8b0:400c:c08::235]:36575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbt8f-0004R7-A2 for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 13:35:57 -0400 Received: by mail-ua0-x235.google.com with SMTP id 97so201640111uav.3 for ; Mon, 22 Aug 2016 10:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to; bh=TLhH7hgeEb8PYKmi/BBhs/0+R3TOJqVIAnobUwkzrRA=; b=IO+tNo68hwcS/qsrzJqKQziw9/PqKBhFvhCRlY6u7VnVHMrr1/uQa45SYFWkUjK7QP udiQI5//HS+0gmw5hOcZ4tPfWswL8RG1wtarqr9+bOQMBuACB7xifpSiaf2Hmkq8kz0X +rqrmk4ybK8xiBoG3UR2OeZk6F8Ltn6uRMSwveOxqe9wy6Hpb2IxpY2jnCqJyS26sw+p tqgVP88rCaAbwd+oZszI3k8IeAalJ+qsdwLdh40nMgumvvHqnCUeX0LGKqv/zhjDjlxL lbC4j5zMhCUL+V7nSMILF8q8KnrihsU3Q7cRAnMflR8VtglM40UInME1QHGKxKda4JIR LZpA== 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:from:date:message-id:subject :to; bh=TLhH7hgeEb8PYKmi/BBhs/0+R3TOJqVIAnobUwkzrRA=; b=mrbpq1FhKsdfPQybpR0IurPNcfft/CnPxp5CsTABTR1pM+x/F5437dAZxv+aVqeu1d VBfVADEd+CNhw1bN2cxQzvSn1YEqDwERNK11toSTs2K8ZIdL9zj+Wg/FOotAVN5XdM/V XyL5w6uY0SSn070YPb2J8784wplmh+k+bk5mqvYNMsU9z3r7YBk58fgLARepKqVy5WxT QyWFdke/7oR2oBREM7n2hADPGIg80BJbR+cva5vxhHcGlc2hkorIDy7Kup3O/k7mRmGf PUDSmC/Cn2C+jNTSZZo2rdTs6trdl9CohLd/Stc5u1l2itEanaNntftg60lvCuCCSHn2 Z0Gg== X-Gm-Message-State: AEkoouthyeXnaSfQVsNmzwPACkcDv16E9yzlSh5GVhxVku1Q4rHxaQ/4BdLmFlCmy63xOmowcM1hDzXFj2rBuQ== X-Received: by 10.31.134.20 with SMTP id i20mr12648882vkd.21.1471887356249; Mon, 22 Aug 2016 10:35:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.77.4 with HTTP; Mon, 22 Aug 2016 10:35:25 -0700 (PDT) From: "Paul A. Steckler" Date: Mon, 22 Aug 2016 13:35:25 -0400 X-Google-Sender-Auth: uUMC3_n3xXiWhF5MWs-5701kIhg Message-ID: Subject: Process filters received stderr output, not documented To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 22 Aug 2016 14:05:41 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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. In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-17 on lgw01-04, modified by Debian System Description: Linux Mint 18 Sarah Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: Loading /etc/emacs/site-start.d/50cmake-data.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/51tuareg-mode.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: /usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu xterm time-date package epg-config tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 82441 5872) (symbols 48 19084 0) (miscs 40 71 124) (strings 32 11704 3827) (string-bytes 1 311934) (vectors 16 7574) (vector-slots 8 345765 28255) (floats 8 66 515) (intervals 56 211 1) (buffers 960 13) (heap 1024 17669 1772)) From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 22 14:23:09 2016 Received: (at 24287) by debbugs.gnu.org; 22 Aug 2016 18:23:09 +0000 Received: from localhost ([127.0.0.1]:37141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbtsL-0007DS-0P for submit@debbugs.gnu.org; Mon, 22 Aug 2016 14:23:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbtsJ-0007DF-HT for 24287@debbugs.gnu.org; Mon, 22 Aug 2016 14:23:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbts9-0007dg-C7 for 24287@debbugs.gnu.org; Mon, 22 Aug 2016 14:23:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbts9-0007db-9f; Mon, 22 Aug 2016 14:22:57 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3300 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bbts7-0001mO-EP; Mon, 22 Aug 2016 14:22:55 -0400 Date: Mon, 22 Aug 2016 21:23:08 +0300 Message-Id: <83y43ofysz.fsf@gnu.org> From: Eli Zaretskii To: "Paul A. Steckler" In-reply-to: (steck@stecksoft.com) Subject: Re: bug#24287: Process filters received stderr output, not documented References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 24287 Cc: 24287@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) > 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—for example, by using an appropriate shell command. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 22 14:38:26 2016 Received: (at submit) by debbugs.gnu.org; 22 Aug 2016 18:38:26 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 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 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 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 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 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 Subject: Re: bug#24287: Process filters received stderr output, not documented To: bug-gnu-emacs@gnu.org References: <83y43ofysz.fsf@gnu.org> From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Message-ID: <7cd34931-18e2-3961-f958-49606d9afb1f@gmail.com> Date: Mon, 22 Aug 2016 14:38:01 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <83y43ofysz.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="01OQbdWAoGSdKiXQhiebemVxddSbu7Arw" 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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-- From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 22 15:09:25 2016 Received: (at 24287) by debbugs.gnu.org; 22 Aug 2016 19:09:25 +0000 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 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 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) MIME-Version: 1.0 Received: by 10.103.77.4 with HTTP; Mon, 22 Aug 2016 12:08:47 -0700 (PDT) In-Reply-To: <83y43ofysz.fsf@gnu.org> References: <83y43ofysz.fsf@gnu.org> From: "Paul A. Steckler" Date: Mon, 22 Aug 2016 15:08:47 -0400 X-Google-Sender-Auth: I0v3V5KG9lzpxfkvB6-y5Kgx_AA Message-ID: Subject: Re: bug#24287: Process filters received stderr output, not documented To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24287 Cc: 24287@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 22 15:15:50 2016 Received: (at submit) by debbugs.gnu.org; 22 Aug 2016 19:15:51 +0000 Received: from localhost ([127.0.0.1]:37181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbuhK-0008VW-NF for submit@debbugs.gnu.org; Mon, 22 Aug 2016 15:15:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbuhG-0008VH-5Y for submit@debbugs.gnu.org; Mon, 22 Aug 2016 15:15:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbuh9-00024p-PD for submit@debbugs.gnu.org; Mon, 22 Aug 2016 15:15:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbuh9-00024T-K9 for submit@debbugs.gnu.org; Mon, 22 Aug 2016 15:15:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbuh7-0002XL-FZ for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 15:15:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbuh3-00022y-7W for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 15:15:36 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbuh3-00022U-3Q; Mon, 22 Aug 2016 15:15:33 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3449 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bbuh0-0001kG-IF; Mon, 22 Aug 2016 15:15:31 -0400 Date: Mon, 22 Aug 2016 22:15:29 +0300 Message-Id: <83twecfwdq.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel In-reply-to: <7cd34931-18e2-3961-f958-49606d9afb1f@gmail.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel on Mon, 22 Aug 2016 14:38:01 -0400) Subject: Re: bug#24287: Process filters received stderr output, not documented References: <83y43ofysz.fsf@gnu.org> <7cd34931-18e2-3961-f958-49606d9afb1f@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) > Cc: Eli Zaretskii > From: Clément Pit--Claudel > Date: Mon, 22 Aug 2016 14:38:01 -0400 > > The output that a subprocess writes to its standard output stream is > ^^^^^^^^^^^^^^^ > passed to a function called the “filter function”. The default filter > function simply inserts the output into a buffer, which is called the > associated buffer of the process (*note Process Buffers::). If the process > has no buffer then the default filter discards the output. > > The highlighted section is not true, is it? Of course, it's true: the standard output _is_ passed to a filter. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 17:47:39 2016 Received: (at submit) by debbugs.gnu.org; 23 Aug 2016 21:47:39 +0000 Received: from localhost ([127.0.0.1]:38257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcJXn-0004gp-7Z for submit@debbugs.gnu.org; Tue, 23 Aug 2016 17:47:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcJXm-0004ge-4N for submit@debbugs.gnu.org; Tue, 23 Aug 2016 17:47:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcJXf-0004g4-Pu for submit@debbugs.gnu.org; Tue, 23 Aug 2016 17:47:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcJXf-0004fx-NG for submit@debbugs.gnu.org; Tue, 23 Aug 2016 17:47:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcJXd-0006fu-9d for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 17:47:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcJXa-0004f1-5C for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 17:47:29 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:53477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcJXZ-0004eQ-NT for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 17:47:26 -0400 Received: from [18.26.2.123] ([18.26.2.123]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0MVmFr-1beEGB006B-00Z0lz for ; Tue, 23 Aug 2016 23:47:24 +0200 Subject: Re: bug#24287: Process filters received stderr output, not documented To: bug-gnu-emacs@gnu.org References: <83y43ofysz.fsf@gnu.org> From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Message-ID: <2f595455-af39-b61e-91ce-a03c58011fba@gmail.com> Date: Tue, 23 Aug 2016 17:47:16 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <83y43ofysz.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hHKhQ5JXQeAilrWiITp6EGC7tL6DX8eUc" X-Provags-ID: V03:K0:mFR/1kCOR2WB3/Ght7IVPhgu68wQneWsI+S0m3InjWIAt2yyUNA XEZDcY+YmgXCiHKeKj2KT2RAZAy7h90i7DrkwaPZZyE7mhuNrI2VaVb0nLPYdVaOWeEmOxM i9FZhgZW4BDZfcuxij++0ADBkYayy/nMfp33NEiotrB6RWoSmjCtIwaxbiRSxHHimYg2SwN yVe+dd+LWIQ+i3IZ06hGA== X-UI-Out-Filterresults: notjunk:1;V01:K0:MAT5SKqWFDk=:CuuqAsjUdt2sdishAhM5PB ByJV9A0ipXxnyLOeMCbfVKEWGdQ/YvQVeTaA2RNgkUST0N/Fb6O7opbNv5bWepxcYUWlwn134 THJ5ci420eCd0u2wBDHes67O3sUGxmeXRxZ5k1T+Moer11tptyA3tBto7sH053k6Ex3gQZD/D fLlGSkznQ51fh5OHmAqNe7DzhlqzCT6D6nMbT6ANDir7A/WSVQoCIg/JASGsDjsjymZxF7mA2 0GkGJU2OO8kAJ38BYvwBKFN5rPkQ7I99ZlAL+qkFd++osnZ/fjcac1mUmAfgJQGiJLelMUQR+ /D5Vet8ryZu8yU1k3h8L/16Rk2jz+z3P2TcjULVPMvLvz2Iemk26CfeiI7fJb0YqsulgVeJ3Y 7pXP8cXhMiB2G3c3IjLdS2wr4Y7I8IAekMoBq0mxwiqUBo565w/Hft/N2WTXW0my9tCNXwNbF AJvZ01qwME9i2W1+sCrpTEv6q7Svx7vBCZJ0KuR28oHQ5cr+ovgKbyEjYcMuiGvaPYlC+cuvE ilP6E0hkYlyJDT9ilTPrzfrHSvbdsYOFrgV8dpmCER4la7ExUQff70/w50izZ4ebAMwG1BQsV X6c+ibsgt+X/FRYdSsilRV4cVx+Zs62QNABZmvUNQzXZSbK101UP+OlKS5n6Ori5ou+S6fTMl 5ovw3suZtP9Sf9t21bhx0rSyf4x3hYCCqKTctkpjJ31qME3AnHd4bFK7U9uYRBn79h88= 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hHKhQ5JXQeAilrWiITp6EGC7tL6DX8eUc Content-Type: multipart/mixed; boundary="Bgw1hMGMHGU8NVxVgqOIP1LO2eiO7dGFP" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: bug-gnu-emacs@gnu.org Message-ID: <2f595455-af39-b61e-91ce-a03c58011fba@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> --Bgw1hMGMHGU8NVxVgqOIP1LO2eiO7dGFP 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. Hi Eli, Am I misunderstanding something? This section sounds misleading, at leas= t for Emacs 25 (I'm not sure about Emacs 24). The documentation of make-= process (which is new in Emacs 25, right?) says: :stderr STDERR Associate STDERR with the standard error of the process. STDERR is either a buffer or a pipe process created with =E2=80=98make-pipe-process=E2=80=99. The docstring of start-process was updated accordingly: If you want to separate standard output from standard error, use =E2=80=98make-process=E2=80=99 or invoke the command through a shell = and redirect one of them using the shell syntax. Both of these suggest that the impossibility that the manual mention only= applies to the pty case (the manual recommends against using PTYs for no= n-user-facing processes anyway). What about something like this: It is impossible to separate the standard output and standard error s= treams of a subprocess spawned inside a pseudo-TTY, as pseudo-TTYs have only= one output channel. If you want to keep the output to those streams sepa= rate, you should either use `make-process' with the :stderr argument, or re= direct one of the streams to a file=E2=80=94for example, by using start-process-shell-command with an appropriate redirection. Additionally, we could update the documentation of make-process: right no= w, it starts with "This function is like =E2=80=98start-process=E2=80=99,= but takes keyword arguments.", but from what I understand it can actuall= y do more than start-process. What about this: This function is like =E2=80=98start-process=E2=80=99, but takes key= word arguments, and can separate output to standard output and standard error. Btw, was there a way in Emacs 24 to separate these streams if the process= was run after setting process-connection-type to nil? (I can't think of = one). Cheers, Cl=C3=A9ment. --Bgw1hMGMHGU8NVxVgqOIP1LO2eiO7dGFP-- --hHKhQ5JXQeAilrWiITp6EGC7tL6DX8eUc 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 iQIcBAEBCAAGBQJXvMRpAAoJEPqg+cTm90wj1M8P/jYMG6gEZoKWJsRnyZ/8vuUD O+tMhPLeb/E2Qr8xhz2OXHLgGjU5MjEFhXGS5Uu8ZBOfppHC6gWTMpgiMgJbRdeE oiZIS29ki/K5MwkA0amAfz+wSaZiIoE+t0PJIJEeRN57hfeOTorSwQgjVDVD3Xcs tyCzCvqZOcSaj2M0cTJnDJGG0jPE6wLR+FzRUqEKqyzdMcqAKBdjdhzMudCyCGVo ggEaJKXyZRedrP1hf7xdua6MMw7xWzueR3PkFmhiQql0ycM+trKo76curjWZsTvy +7Y37gw5kVmPO8U0+zbld6y7eVnG2bRPeYZszJEp+0hG0wJMKF5pwLiGS5WkwJ21 JWAsipLmi6Jc+0yoDhZGLkaK+kSYmelKQhFedMy/pam/Iex/BZFdUUr8YDbw/pVO 6dvUGAp4xbWDfbPNO9REdSel29jSNsrfzXLBedC90z3D7K2Qerp5G4tK87Xd/5sk g7Vgcka05wQlQ+Au5s2U+MNWhSQEgLYS1uYNuHselyJAJq9AHECA6Or16E8zVKmZ fIdFOsM3JF4zWm04nowQbzDUgneFdPtwsxxtdgZyErGFsPx0kRylk56wrLJ4RJnC I271XzqnX6wHqZRVB9hX8uLzaxrdIZ9MQlBRrLpTeR8AIajiRjZzj39allb8j5ei gEmPfL3ccV32j1c/SfRT =vNOi -----END PGP SIGNATURE----- --hHKhQ5JXQeAilrWiITp6EGC7tL6DX8eUc-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 24 10:44:10 2016 Received: (at 24287-done) by debbugs.gnu.org; 24 Aug 2016 14:44:10 +0000 Received: from localhost ([127.0.0.1]:39202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcZPR-0007Qa-6B for submit@debbugs.gnu.org; Wed, 24 Aug 2016 10:44:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcZPL-0007Pt-Bv for 24287-done@debbugs.gnu.org; Wed, 24 Aug 2016 10:44:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcZPB-00029u-8E for 24287-done@debbugs.gnu.org; Wed, 24 Aug 2016 10:43:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcZPB-00029R-54; Wed, 24 Aug 2016 10:43:49 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2462 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bcZP9-0005Jz-DQ; Wed, 24 Aug 2016 10:43:47 -0400 Date: Wed, 24 Aug 2016 17:44:04 +0300 Message-Id: <83zio2dy6j.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel In-reply-to: <2f595455-af39-b61e-91ce-a03c58011fba@gmail.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel on Tue, 23 Aug 2016 17:47:16 -0400) Subject: Re: bug#24287: Process filters received stderr output, not documented References: <83y43ofysz.fsf@gnu.org> <2f595455-af39-b61e-91ce-a03c58011fba@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: 24287-done Cc: 24287-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) > From: Clément Pit--Claudel > Date: Tue, 23 Aug 2016 17:47:16 -0400 > > > 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—for example, by using an appropriate > > shell command. > > Hi Eli, > > Am I misunderstanding something? This section sounds misleading, at least for Emacs 25 (I'm not sure about Emacs 24). The documentation of make-process (which is new in Emacs 25, right?) says: > > :stderr STDERR > Associate STDERR with the standard error of the process. > STDERR is either a buffer or a pipe process created with > ‘make-pipe-process’. > > The docstring of start-process was updated accordingly: > > If you want to separate standard output from standard error, use > ‘make-process’ or invoke the command through a shell and redirect > one of them using the shell syntax. > > Both of these suggest that the impossibility that the manual mention only applies to the pty case (the manual recommends against using PTYs for non-user-facing processes anyway). What about something like this: > > It is impossible to separate the standard output and standard error streams > of a subprocess spawned inside a pseudo-TTY, as pseudo-TTYs have only one > output channel. If you want to keep the output to those streams separate, > you should either use `make-process' with the :stderr argument, or redirect > one of the streams to a file—for example, by using > start-process-shell-command with an appropriate redirection. > > Additionally, we could update the documentation of make-process: right now, it starts with "This function is like ‘start-process’, but takes keyword arguments.", but from what I understand it can actually do more than start-process. What about this: > > This function is like ‘start-process’, but takes keyword arguments, and can > separate output to standard output and standard error. Actually, the situation was much worse than those minor changes could handle. The documentation of process-related APIs was not reviewed in its entirety for quite some time, and as result bit-rotted quite a lot. I fixed that. This is what happens and will continue to happen if people will not volunteer to review documentation during the pretest, certainly when a major version is about to be released. For Emacs 25.1, only a single individual volunteered, and a single *.texi file was reviewed. I expect the accuracy and the overall quality of our documentation to go downhill if we don't see more volunteers. > Btw, was there a way in Emacs 24 to separate these streams if the process was run after setting process-connection-type to nil? (I can't think of one). No, I don't think so. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 24 11:18:55 2016 Received: (at 24287-done) by debbugs.gnu.org; 24 Aug 2016 15:18:55 +0000 Received: from localhost ([127.0.0.1]:39237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcZx4-0008K8-4T for submit@debbugs.gnu.org; Wed, 24 Aug 2016 11:18:55 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:55528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcZwy-0008Jp-Im for 24287-done@debbugs.gnu.org; Wed, 24 Aug 2016 11:18:49 -0400 Received: from [18.189.127.88] ([18.189.127.88]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0MYaIg-1bhXky0ydG-00VQaz; Wed, 24 Aug 2016 17:18:38 +0200 Subject: Re: bug#24287: Process filters received stderr output, not documented To: Eli Zaretskii References: <83y43ofysz.fsf@gnu.org> <2f595455-af39-b61e-91ce-a03c58011fba@gmail.com> <83zio2dy6j.fsf@gnu.org> From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Message-ID: Date: Wed, 24 Aug 2016 11:18:29 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <83zio2dy6j.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4cgpBXFGgmvwIXU40cAA0L0Vx8vfdAnH6" X-Provags-ID: V03:K0:pXqYNDMl6WygLwH7RE/EPCAA8U0z/qmin7CuvBDGsf12L4S9SVN 74RAVmjWuPku53Vka7ZioL1ENmtV84OV5DX3GpAjIkxXmmj3vGnMo9K83hiRhavIsi6ajz7 EVdcffVeDzVpdmwwUwMXd3NqTx0AOWGxBs7TeSjypNUblji3RQMrDyYuQX28qjXJcS+HOIG LDmoepFg7yBgShawR26HA== X-UI-Out-Filterresults: notjunk:1;V01:K0:IGIvazRYqvc=:TtBYpHY8mt+cpSmHM6bj/W K1WpYUGt6csj0HsrGk32TC9EXalUsdHUQBLfQBw1grPtWVb2MlTDTdra7tJRvlEBPDnqu4jUU dZuUPYmIW9HsotZ4BkPs7R5EQ9QcUdT8vkPNomixRnyDMaIotR27pC30JUzy9RoGYn6zdrOVH OBilS3FG+QPxblG+fQ3huFLeI5U7ZYGBJCGrGW+Whym9UeiRGKqj3FrvslgvzRryM1fDtjd4t 5PAMvN6bC5h05+lmn0cCqnYxTQKmen3jIWS9ysa/a4GsfmNs5vZ0Rpg4BxGvEozP8tetLatO5 24iv7Y/lImr+smjaCub3vTpHGBMM7OINayXLccbUMOj8xw3CephX1Ff2Cg4PwSmQxZ9dJeXVW CS6fkihkLf4zClC0/HR2+HZOEmVxXZPQC6G0v5E7J8ijLL7a6NS89Bqrwz+EEhu80deof7IRX nIZz6DYyCC4WoPDtre21QctnLgb9TvHiGH54CpbxwvF5llCMKXP5zKlfkxIAKcQ2kV4CaORC5 EVY+CovdwC9VqyFwaNuz1xxlZ2+ZEcP2JnzYvGqy/z4IGnGfIi+e1NfYJSma6i738loJPz1b4 2rIhtUu07XIwwzEwf4PRn4aO98jFV81bNIV1E40upfCdhLCyBAy6bpI5ZCJOYG3jelzwyQNu7 2mSGss8bAY8dP9bFsX/bclkNOucDEkuVh5Pki1muoB2RHJfYUCkIwlXxz0YesIQYFiHk= X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 24287-done Cc: 24287-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4cgpBXFGgmvwIXU40cAA0L0Vx8vfdAnH6 Content-Type: multipart/mixed; boundary="d7VC7n3d74HsVODtpPM13GBWtNwrBmpPK" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: Eli Zaretskii Cc: 24287-done@debbugs.gnu.org Message-ID: Subject: Re: bug#24287: Process filters received stderr output, not documented References: <83y43ofysz.fsf@gnu.org> <2f595455-af39-b61e-91ce-a03c58011fba@gmail.com> <83zio2dy6j.fsf@gnu.org> In-Reply-To: <83zio2dy6j.fsf@gnu.org> --d7VC7n3d74HsVODtpPM13GBWtNwrBmpPK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2016-08-24 10:44, Eli Zaretskii wrote: > Actually, the situation was much worse than those minor changes could > handle. The documentation of process-related APIs was not reviewed in > its entirety for quite some time, and as result bit-rotted quite a > lot. I fixed that. Great, thanks! --d7VC7n3d74HsVODtpPM13GBWtNwrBmpPK-- --4cgpBXFGgmvwIXU40cAA0L0Vx8vfdAnH6 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 iQIcBAEBCAAGBQJXvbrGAAoJEPqg+cTm90wjLpoP/R1X0RE2L5uajw7LLCFpU8fZ 4emd7gGUOlfgIo4wxVtKapW8VymzuaKAqoFI6bWbfLU400ipp+HHK7Knhp7Fgt/N Kz5ozh8Bh2D+wgSTx6HI9rVW91EduIfMxJwtQRKbKUznK6Ls8r0UG/7FSFEormPC J46uf73diNHQtnIribfjPs0NFQDeOpgF61h0Ge1r7bhXpdpPvHzOosidJUHjSk59 41iJepMCh0pJyW3XULGj7H9/aQQ93oduZ4UTjZngPFPnNXNm0ODfp+/JyrO9aHDj Bgz+ENXi5hONBa6yL52+yPTMDxt/0cHnN2vY44Rh2wgbIjrRvC/+5r49DqQrL+oW OZ8IDDY1x/x3k9uN7wWaEZpC40E6lqoi/I7xqcmbilSqaiPbUqsXCAe4KNWf1tzg G68U21JNxXee5l8aMXX7au9vXmp2Dm4DW4uOKTbjaMCiq4ot/CK+zTXd7rzcdRA7 Km5lbMyiqpqCSyXn3GUwNnAyR0pNoAAJqYXb/SNMtCo64IuwN2T5Wxjvh0sjwQDp V0hKrDfLpI9eI919IPht+mh+E06LC8LKfr2yYK5J4mZDS29vmWuweTGSGmy5O4Vj A5Jbc3Yj0Z+pI5BTy/LvqqiWk4qU9xccwA+M0bLgXXndgP2F3nYSFcwdzqu628CZ zx5+EAHE/1C6ol1T5s3w =9Y/g -----END PGP SIGNATURE----- --4cgpBXFGgmvwIXU40cAA0L0Vx8vfdAnH6-- From unknown Sun Jun 22 03:57:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 22 Sep 2016 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator