From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29279: Sharing the margins Date: Tue, 14 Nov 2017 17:30:47 +0200 Message-ID: <83375glvx4.fsf@gnu.org> References: <0a54e927-cab1-1f1d-4996-85bb36949a33@yandex.ru> <83375imbaa.fsf@gnu.org> <83o9o6kp61.fsf@gnu.org> <83h8tykm99.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1510673565 30376 195.159.176.226 (14 Nov 2017 15:32:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2017 15:32:45 +0000 (UTC) Cc: 29279@debbugs.gnu.org, joostkremers@fastmail.fm To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 14 16:32:39 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEdCY-0007VW-B6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Nov 2017 16:32:38 +0100 Original-Received: from localhost ([::1]:60374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEdCf-00060m-LN for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Nov 2017 10:32:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEdB3-0003dp-Pu for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 10:31:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEdB0-0005UV-0S for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 10:31:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59882) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEdAz-0005UK-TV for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 10:31:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eEdAz-0001Wi-LJ for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 10:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Nov 2017 15:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29279 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29279-submit@debbugs.gnu.org id=B29279.15106734525852 (code B ref 29279); Tue, 14 Nov 2017 15:31:01 +0000 Original-Received: (at 29279) by debbugs.gnu.org; 14 Nov 2017 15:30:52 +0000 Original-Received: from localhost ([127.0.0.1]:40330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEdAp-0001WK-Kd for submit@debbugs.gnu.org; Tue, 14 Nov 2017 10:30:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEdAo-0001W6-4p for 29279@debbugs.gnu.org; Tue, 14 Nov 2017 10:30:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEdAh-0005GX-S3 for 29279@debbugs.gnu.org; Tue, 14 Nov 2017 10:30:44 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEdAc-0005C1-Q3; Tue, 14 Nov 2017 10:30:38 -0500 Original-Received: from [176.228.60.248] (port=3449 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eEdAc-0006zU-0J; Tue, 14 Nov 2017 10:30:38 -0500 In-reply-to: (message from Dmitry Gutov on Mon, 13 Nov 2017 23:16:15 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:139884 Archived-At: > Cc: 29279@debbugs.gnu.org, Joost Kremers > From: Dmitry Gutov > Date: Mon, 13 Nov 2017 23:16:15 +0200 > > I think set-window-margins, and the nil/unknown symbols should work with > the 'default' symbol. And it will have the ordinal = 0. > > Then, older packages that are not updated to use the new API can fight > between themselves for the use of the default column, but the winner can > peacefully coexist with the packages using the new API. Could be. > > My idea was not to create a column, just make sure the total width is > > no less than the requested value. Which means some of the requested > > columns will be wider than requested, I guess. > > It would probably look not too great. Just like 'text-align: justify' > often works bad on web pages. > > So I'd personally prefer to have all padding on one side. But then requests for the rightmost (or leftmost) column will go unsatisfied, for apparently no good reason. > Then, unless people disagree, setting the total width could be made into > a separate call. With three arguments: side, width and the side from > which to pad (inside/outside, for instance). That can be done, but the main issue is not the API in this case, I think, it's the effect of the call. > > The slowdown will be caused by resizing of the margins (and all the > > window-configuration-change-hooks that triggers). > > Doesn't the use of the special area trigger the window configuration > changes as well, in similar situations? No, and I still hope we can avoid the need to do that. tabulated-list-mode came close, but I eventually succeeded in making it happy with the other hooks. > After all, it also changes the accessible window body width, right? It depends on your POV. My POV is that it doesn't, since the window dimensions and the dimensions of the text area are unaltered. At least one other person disagreed (vociferously).