From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Window splitting issues with margins Date: Fri, 13 Nov 2015 15:53:54 +0100 Message-ID: <5645F982.30506@gmx.at> 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> <83oaeyf1j6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447426478 4271 80.91.229.3 (13 Nov 2015 14:54:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2015 14:54:38 +0000 (UTC) Cc: joostkremers@fastmail.fm, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 13 15:54:30 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 1ZxFk8-0004BN-PW for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2015 15:54:24 +0100 Original-Received: from localhost ([::1]:53458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxFk8-0004Qd-9U for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2015 09:54:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxFjv-0004Pn-0Y for emacs-devel@gnu.org; Fri, 13 Nov 2015 09:54:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxFjq-0004QP-1a for emacs-devel@gnu.org; Fri, 13 Nov 2015 09:54:10 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:58319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxFjp-0004QC-Mz; Fri, 13 Nov 2015 09:54:05 -0500 Original-Received: from [192.168.1.100] ([213.162.68.112]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Lp3x6-1aZbEU1Jga-00eq6j; Fri, 13 Nov 2015 15:54:02 +0100 In-Reply-To: <83oaeyf1j6.fsf@gnu.org> X-Provags-ID: V03:K0:XcNO+YB1PshSNLI2SpNyOHHGSOu1S/vPNTAoYjRrhqNNccKX17Z FuqDulukjpKOe8r/0wxlNS0Q73ysHnBXBHF0oMm+VbSnlp9kok8Np7z0LP73uh+l4KtrKeV cEMkecKjbsnxB6gU4hnJNHLduN3HjOWuJdeKMB7sR+mfVGFx1g9Z4/Qj3vKPUgPQFT40AJX e4hlUHjWuk7ra8+Xoi7ug== X-UI-Out-Filterresults: notjunk:1;V01:K0:lOq/gy3M67k=:tkUIKJ0AXuzFDoCy/PoQww 8C2oCJ2KMRIKMqqqmPYg3BJ6f6ducRDHrTIh0VTPpAUdS+DZE33KMFhqihFc8t3QOxzqipPyZ Y5YOKqHOz5WWYCkIuuO/gKtktvQ80F26SR29PYBkw/a2SWiumPMZpyfShqKvdtsUBIycFwxLB /WgeWDT4H89UGjhbi8XEa2MiyeGcGUILkxqbYAHQYlcVqmqj6sT8LQNuTL4Tvls3nOxMmKDv/ Gj/EHgtIxy60xg9piqRrLGryBGwF5ntUTq2ORVQJ3uVddo318jumTgg2HyCBdcTHPb2VeGDEk vxQlDulWhGevmlx72+NzgCHxtYTUtkLjwVln1kxgUaPghDA7/EtYXfxRefn+XAbS3gmNLRD67 EioxL7DjeVUqXZK43sEcBl9Kee9MFHoIMC72UmwkacPMHGJ1nhdzWH8WBAAgg8iVYJhRRBklX PeV146y+2J63jljiJQJvP+ToJ/i1vjwMDgvgC53KXENzBP6Gz0ChiQf5d7LWK0qVdKcyxczuy orAWhDKJGcYGPNvkzUAdKaLm3e19TI+GJsxlzNfw0IeFFllyuezn8jU3T/6xx0mu5/Y2x0cUG HxdG8aHY18mxmnD25DcrJOscmHOp9uCjqtm/DskNYL360QdVazj/FihGxnw/zMXLLIdekq2M0 84/sRMox7pOanarKvj0lDC3YmITL5ItiORz82COKeeCXJPL18Brjsui6sPaT87q6kgh9uPZOf giGZTMa5hmDRPAPYP8jULJF2/vygxdZ9R8TJsiMOQW5L4zYcbmqjsocPE+KhnfO3qy+lh2KZ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 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:194370 Archived-At: > I'm sorry, how does display-buffer come into this picture? In another other mail you said >> let's instead try to solve that on the >> window-splittable-p level and that function is used only in the context of =E2=80=98display-buffer=E2= =80=99. > 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. This would have to be done in =E2=80=98split-window=E2=80=99 then. More = precisely it would have to be done in the function =E2=80=98window--sanitize-window-si= zes=E2=80=99 which tries to make sure that all windows have reasonable sizes according to the sizes of their margins, fringes, ... Note one aspect though: When you shrink margins while splitting or shrinking windows you usually won't get back their old size after deleting the other or enlarging this window. That's why I think that it's much easier when packages manage their preferred size of margins in =E2=80=98window-size-change-functions=E2=80=99 and =E2=80=98window-config= uration-change-hook=E2=80=99. martin