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: Mon, 16 Nov 2015 17:53:27 +0200 Message-ID: <836112c554.fsf@gnu.org> References: <874mgrwerb.fsf@fastmail.fm> <5644A2AC.3080703@gmx.at> <871tbux3vb.fsf@fastmail.fm> <564599A6.6060306@gmx.at> <838u62guhm.fsf@gnu.org> <87mvugs4la.fsf@fastmail.fm> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1447713959 7780 80.91.229.3 (16 Nov 2015 22:45:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2015 22:45:59 +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 Mon Nov 16 23:45:53 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 1ZySX2-0001Fo-4b for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2015 23:45:52 +0100 Original-Received: from localhost ([::1]:51576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZySX1-0002V4-LC for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2015 17:45:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyM63-0002ZV-Oj for emacs-devel@gnu.org; Mon, 16 Nov 2015 10:53:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyM60-0000N6-9v for emacs-devel@gnu.org; Mon, 16 Nov 2015 10:53:35 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:46912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyM60-0000Ky-2v for emacs-devel@gnu.org; Mon, 16 Nov 2015 10:53:32 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NXW00J00ZW47G00@mtaout28.012.net.il> for emacs-devel@gnu.org; Mon, 16 Nov 2015 17:52:24 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NXX00HC003CM720@mtaout28.012.net.il>; Mon, 16 Nov 2015 17:52:24 +0200 (IST) In-reply-to: <87mvugs4la.fsf@fastmail.fm> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 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:194579 Archived-At: > From: Joost Kremers > Date: Sat, 14 Nov 2015 21:34:09 +0100 > Cc: martin rudalics , emacs-devel@gnu.org > > It's just that I think both issues could be solved by the same > mechanism: allowing a (minor) mode to lock the margins to a certain > minimum width. window-splittable-p could then assume that those parts of > the margins that are not locked can be reduced along with the text area, > unlike now, where the underlying assumption seems to be that if the > margins are > 0, there's probably a reason for it and they shouldn't be > reduced. > > At the same time, it would allow linum-mode and writeroom-mode to play > nice together: instead of setting the margin to the size it requires for > line numbers, linum-mode could set a minimum size, allowing other > packages to make them wider. writeroom-mode then would not be allowed to > set margins to less than the minimum size. But this will only work in a very special case: when only one mode actually displays something in the margin. Once another mode wants to put something there, all bets are off. Right?