From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: `window-adjust-process-window-size-function' and process buffer windows Date: Fri, 29 Apr 2016 15:54:57 -0700 Message-ID: <5723E641.3010600@dancol.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="V5ebnhe1wM2cdkgD9LRbex3qP4TkqdNcb" X-Trace: ger.gmane.org 1461970562 9980 80.91.229.3 (29 Apr 2016 22:56:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 22:56:02 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 30 00:55:58 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awHKG-0008KP-Qe for ged-emacs-devel@m.gmane.org; Sat, 30 Apr 2016 00:55:56 +0200 Original-Received: from localhost ([::1]:56705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awHKA-0002J2-Og for ged-emacs-devel@m.gmane.org; Fri, 29 Apr 2016 18:55:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awHJs-0001uz-KF for emacs-devel@gnu.org; Fri, 29 Apr 2016 18:55:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awHJj-0008IX-0W for emacs-devel@gnu.org; Fri, 29 Apr 2016 18:55:29 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:40220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awHJh-00088m-K2 for emacs-devel@gnu.org; Fri, 29 Apr 2016 18:55:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=nmzpeMgC5YpISr4/hzxfSYR0jyYCH+iXG/r3jeDLh0E=; b=Woii8WPsX2PgNt3DcHEkfOFyEeT4CwIB0RogjcgSNXynVRXtQKBiTEUJ82L+Yr23RDVzcVdKSr8KH5l5MQN+oNwyfDdPUd+qf5/f2zBMlNj5h7AtLEZEzPJ8r3xSyxi0m8jr9OrQWcqXIP2K2gwXrCRAPHVpgbuxa/hbpHXJ6ZIpcdagRaXpXWpaM2bIFuAwqR/N2RGt20ZRmkYw6BKzceEmAqHzgqq/Hs3xrtdr7/TCaIRpOtFn98oJNTkzFUt6ph21UK8uavoUGN/9cKJiBwzf47NZfIiFm7hkMPbV55/y8iMJU8vn3RZQhLB51tmCxE3wArC46liPPyqgqh4OQA==; Original-Received: from [2620:10d:c090:200::5:ac73] (helo=[IPv6:2620:10d:c083:10e0:250:b6ff:fe19:1d44]) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1awHJR-00011Z-2N for emacs-devel@gnu.org; Fri, 29 Apr 2016 15:55:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 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:203435 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --V5ebnhe1wM2cdkgD9LRbex3qP4TkqdNcb Content-Type: multipart/mixed; boundary="l9agrP9Sxh0GK9B9dMaD5eWVE0Q63soC4" From: Daniel Colascione To: emacs-devel Message-ID: <5723E641.3010600@dancol.org> Subject: Re: `window-adjust-process-window-size-function' and process buffer windows References: In-Reply-To: --l9agrP9Sxh0GK9B9dMaD5eWVE0Q63soC4 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 04/29/2016 03:50 PM, John Wiegley wrote: > Hi Daniel, >=20 > I was wondering if I could ask you far the rationale behind the customi= zation > variable `window-adjust-process-window-size-function', and a bit more > information about what "process buffer windows" are, and how they relat= e to > process buffers, and other windows. I don't think we have any clear ra= tionale > for this feature in any documented place yet. >=20 We want to communicate to subprocesses how much room they have available to display their content. We send them this information by using TIOCSWINSZ, which ends up generating SIGWINCH. Suppose we have a subprocess associated with a buffer, and that buffer is displayed in two Emacs windows, one larger than the other. Do we tell the subprocess that it has the width of the smaller or the width of the larger available for its output? The choice isn't immediately obvious, so it can be configured the usual way with window-adjust-process-window-size-function. The above discussion is largely repeated in the docstring for that variable. --l9agrP9Sxh0GK9B9dMaD5eWVE0Q63soC4-- --V5ebnhe1wM2cdkgD9LRbex3qP4TkqdNcb 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 iQIcBAEBCAAGBQJXI+ZBAAoJEN4WImmbpWBl3ZUP/A5hmSl9q9a+ymop1r/7fDUa u4gwDwNkcRDg9lTBh9rju99mQiHkbWMN0lMXL4pG8WrrMP/vB97lUd+Og0cB8HXN ks72T4RtO86Hd56MEA60t7fWqk4oxGLg2jyqNmMnK0K5sN6X1O4I0nnbYQaTOSKN Eqa6X3hCgFzmGx/PxLELyTKz3EwJCuOtuAznfF+QPxohcohBXhqelhFo6W0VBDRp TqlIUdg+lyWclxfVcXO8dCro/G7da7ySLlA/HeO2t2/gsfkAoLa1530Bfwiy0uoZ RQ59V1Jo3hcwhghLfqDimEN1axf6YjjKmlmWagLeOy2rb5PriaxEAlPPjOqT90qq Mco8BKHbw6iJfGyOjYwu4Lpk9DTl7WhfcDH2f1vQv7a6yR/irW52PQOmS4eGywpr V/JEDyZqqBRsa+LC1IRQ20o5loppJtzklpT3koUAcBOKdhedFdFWfDGMqEDNW7yR EA3ptloFHq3KmghWX0EiBESOoh2KpCji6cCjvxq5KpxCpfZfcSSnFUIeGyMe7RYc XEDuJx/gBbEc8+PSCEJqbwHTydiYJsEwhWH2fD9yfSG6ZBcU2DS6xTlG50R08HxB jTevdntCdfdCcSYUQkDvZYUR7yc6qAlh3Okm4qixxl4oSIOMWseNa49vAwpAft9Z dM+k5fSf+i36rMvaRgTb =D2RY -----END PGP SIGNATURE----- --V5ebnhe1wM2cdkgD9LRbex3qP4TkqdNcb--