From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Re: Window splitting issues with margins Date: Thu, 12 Nov 2015 23:14:00 +0100 Message-ID: <871tbux3vb.fsf@fastmail.fm> References: <874mgrwerb.fsf@fastmail.fm> <5644A2AC.3080703@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1447366488 23079 80.91.229.3 (12 Nov 2015 22:14:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2015 22:14:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 12 23:14:35 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 1Zx08U-0004I6-S5 for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2015 23:14:31 +0100 Original-Received: from localhost ([::1]:49976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx08U-0001sS-BA for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2015 17:14:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx086-0001rZ-DI for emacs-devel@gnu.org; Thu, 12 Nov 2015 17:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zx083-0004WT-6K for emacs-devel@gnu.org; Thu, 12 Nov 2015 17:14:06 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:36862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx083-0004WI-1u for emacs-devel@gnu.org; Thu, 12 Nov 2015 17:14:03 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9A2B8202C7 for ; Thu, 12 Nov 2015 17:14:02 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 12 Nov 2015 17:14:02 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=IsWBVpJgeJaLW4lcwhr2cJ6HNJA=; b=AgeXZ1 laD8+lsXUJlifg5upME4WhOG39ynXMZpQJNs/M1DPYTRcXN8A4+hcUO6nzez5ya1 DS1ZLUMuGdybaCnc4grYzKWAzQGxFJL1PgeS2fVsQ0fDZPAfPfS14auxVQEtgd14 JdJw/IxtQAeFe8GavCjtYqTC40jF6uypQltp4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=IsWBVpJgeJaLW4l cwhr2cJ6HNJA=; b=hjVxRN6jN++RhVw9MhOmLNr/PAAZZ5HHA2p2zi1HQIj9c1s rO89FedQ6YF3aV5czZUQUz0tbi6Q0ZYgQafA411BBLGt5eK8w9t26qCONwf/cUAp RjZmN6E2PnmcfpB9DaYXysJxxgU4QodTE6uXKKKYO0Y+MRMcKMUNNGnVaVuk= X-Sasl-enc: 4KNvzzPpmqHL7esliaJQqHELV26if5Mxcr/Y+y9HByWP 1447366442 Original-Received: from IdeaPad.messagingengine.com (x4d0af18f.dyn.telefonica.de [77.10.241.143]) by mail.messagingengine.com (Postfix) with ESMTPA id D3C396800C3; Thu, 12 Nov 2015 17:14:01 -0500 (EST) User-agent: mu4e 0.9.13; emacs 24.5.50.1 In-reply-to: <5644A2AC.3080703@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.28 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:194294 Archived-At: On Do, Nov 12 2015, martin rudalics wrote: > > I think it would make more sense to reduce the margin before reducing > > the text width. > > The margins you set above become a window property. If after C-x 3 you > do C-x 1 your are left with the reduced margins which might not be what > you want. Deciding when and how to auto-adjust margins is not trivial. > I would do that in ‘visual-fill-column’. Except that I don't know if any other package is also using the margin and should perhaps assume a minimum width larger than 0. Right now, visual-fill-column will happily set the margin to 0 if the window width is smaller than the requested text width. > I agree with this observation. ‘window-splittable-p’ is asymmetric: > When it checks the width, it uses the text area while for the height it > uses the total area (inlcuding mode and header lines, scrollbar, divider > ...). If you want to change this, please provide a patch. I certainly > won't object it but am afraid that some people eventually will complain > because one of their packages then doesn't work like it used to over the > past decades ... Well, I've been using a modified `window-splittable-p' in my init file for quite some time and *I* don't have any complaints. ;-) > The greatest problem I have with a function returning the combined size > of text area and margins is that it would leave out the fringes. Hence > such a function would by default _not_ return the size of a contiguous > area on the screen which I personally would find slightly disconcerting. True. I hadn't thought about that. > But if you send us such a function (say ‘window-text+margins-width’) > and nobody objects I'll install it. I might do that, but I will think a bit about what to do with the fringes. -- Joost Kremers Life has its moments