From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Window splitting issues with margins Date: Fri, 13 Nov 2015 15:54:05 +0200 Message-ID: <83oaeyf1j6.fsf@gnu.org> References: <874mgrwerb.fsf@fastmail.fm> <5644A2AC.3080703@gmx.at> <83twori3n3.fsf@gnu.org> <8737wax5i9.fsf@fastmail.fm> <83a8qigumw.fsf@gnu.org> <5645B50C.2060701@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1447422923 8130 80.91.229.3 (13 Nov 2015 13:55:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2015 13:55:23 +0000 (UTC) Cc: joostkremers@fastmail.fm, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 13 14:55:13 2015 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 1ZxEoB-0001ct-ES for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2015 14:54:31 +0100 Original-Received: from localhost ([::1]:53064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxEo6-0007qr-4B for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2015 08:54:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxEo2-0007qa-Ls for emacs-devel@gnu.org; Fri, 13 Nov 2015 08:54:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxEnz-00034u-E7 for emacs-devel@gnu.org; Fri, 13 Nov 2015 08:54:22 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:64172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxEnz-00034j-6c for emacs-devel@gnu.org; Fri, 13 Nov 2015 08:54:19 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NXR00800AM8CI00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Fri, 13 Nov 2015 15:54:17 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NXR008ZXAMH6I80@a-mtaout23.012.net.il>; Fri, 13 Nov 2015 15:54:17 +0200 (IST) In-reply-to: <5645B50C.2060701@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:194360 Archived-At: > Date: Fri, 13 Nov 2015 11:01:48 +0100 > From: martin rudalics > CC: emacs-devel@gnu.org >=20 > > If we are talking about the needs of window-resize, then let's t= hink > > in terms of that function's needs. How about if a window or a b= uffer > > could specify the minimum width of its text body, and window-res= ize > > could then use that information when it decides how to split? >=20 > =E2=80=98window-resize=E2=80=99 doesn't split. If you mean =E2= =80=98split-window-sensibly=E2=80=99 then > it already compares =E2=80=98split-width-threshold=E2=80=99 with th= e width of the text > area of the window that shall be split. But all this is very > hypothetical since =E2=80=98display-buffer=E2=80=99 will usually di= splay another buffer > in the new window with different local variables and needs. Neithe= r > =E2=80=98split-window-sensibly=E2=80=99 nor =E2=80=98window-splitta= ble-p=E2=80=99 are up to this task. I'm sorry, how does display-buffer come into this picture? I thought the original problem was with splitting a wide window in which the margins were set to a large size in order to keep the body text at a smaller width. I'm asking whether we could pass this information to the code which splits the window, so that its decisions would take that information into consideration.