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 20:34:17 +0200 Message-ID: <83io55g34m.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> <83oaeyf1j6.fsf@gnu.org> <5645F982.30506@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 1447439703 4113 80.91.229.3 (13 Nov 2015 18:35:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2015 18:35:03 +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 19:34:50 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 1ZxJBS-0001Ce-1M for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2015 19:34:50 +0100 Original-Received: from localhost ([::1]:54654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxJBR-0006hY-Mc for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2015 13:34:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxJBD-0006gt-0t for emacs-devel@gnu.org; Fri, 13 Nov 2015 13:34:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxJB8-0003r4-67 for emacs-devel@gnu.org; Fri, 13 Nov 2015 13:34:34 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:53767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxJB7-0003qy-UA for emacs-devel@gnu.org; Fri, 13 Nov 2015 13:34:30 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NXR00000NE5ZH00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 13 Nov 2015 20:34:28 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NXR000D5NLGZX00@a-mtaout20.012.net.il>; Fri, 13 Nov 2015 20:34:28 +0200 (IST) In-reply-to: <5645F982.30506@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.166 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:194395 Archived-At: > Date: Fri, 13 Nov 2015 15:53:54 +0100 > From: martin rudalics > CC: joostkremers@fastmail.fm, emacs-devel@gnu.org >=20 > > I thought > > the original problem was with splitting a wide window in which t= he > > 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 informatio= n to > > the code which splits the window, so that its decisions would ta= ke > > that information into consideration. >=20 > 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-win= dow-sizes=E2=80=99 > which tries to make sure that all windows have reasonable sizes > according to the sizes of their margins, fringes, ... Something like that, yes. > 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 th= at > it's much easier when packages manage their preferred size of margi= ns in > =E2=80=98window-size-change-functions=E2=80=99 and =E2=80=98window-= configuration-change-hook=E2=80=99. Yes, that would perhaps be preferable. Is there any reason why dark-room mode couldn't do that?