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 10:40:07 +0200 Message-ID: <83a8qigumw.fsf@gnu.org> References: <874mgrwerb.fsf@fastmail.fm> <5644A2AC.3080703@gmx.at> <83twori3n3.fsf@gnu.org> <8737wax5i9.fsf@fastmail.fm> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1447404041 22392 80.91.229.3 (13 Nov 2015 08:40:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2015 08:40:41 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Joost Kremers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 13 09:40:32 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 1Zx9uF-0004ry-R0 for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2015 09:40:27 +0100 Original-Received: from localhost ([::1]:51652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx9uF-0000lo-95 for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2015 03:40:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx9uC-0000li-De for emacs-devel@gnu.org; Fri, 13 Nov 2015 03:40:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zx9u9-0002TC-6I for emacs-devel@gnu.org; Fri, 13 Nov 2015 03:40:24 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:34551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx9u8-0002T1-UT for emacs-devel@gnu.org; Fri, 13 Nov 2015 03:40:21 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NXQ00300VS47900@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 13 Nov 2015 10:40:19 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NXQ00297W37US80@a-mtaout22.012.net.il>; Fri, 13 Nov 2015 10:40:19 +0200 (IST) In-reply-to: <8737wax5i9.fsf@fastmail.fm> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:194332 Archived-At: > From: Joost Kremers > Cc: martin rudalics , emacs-devel@gnu.org > Date: Thu, 12 Nov 2015 22:38:38 +0100 > > > I'm not sure margins should be auto-adjusted at all. Whatever > > application sets up those margins, they most probably need all that > > space, and Emacs should not second guess such applications. For > > example, linum-mode sets the margin just wide enough to display the > > longest line number; make the margin smaller, and the numbers will be > > truncated. That's a bug in my book. > > Perhaps what is needed is for a mode that uses the margins to be able to > specify a minimum size for them, so that a window-resize can take that > into account. That would allow other modes to use the margin flexibly. If we are talking about the needs of window-resize, then let's think in terms of that function's needs. How about if a window or a buffer could specify the minimum width of its text body, and window-resize could then use that information when it decides how to split?