From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.devel Subject: Re: Suggesting `frame-split-biggest-window' Re: customize location and shape of a new window in a frame Date: Fri, 14 Sep 2018 00:17:04 -0500 Message-ID: <17488.90794.824863.23451@gargle.gargle.HOWL> References: <9755.9843.306611.23448@gargle.gargle.HOWL> <87y3c7pw4w.fsf@ericabrahamsen.net> <87h8iuik3g.fsf@moondust.localdomain> <87o9d2eaql.fsf@ericabrahamsen.net> <875zzawbd6.fsf_-_@moondust.localdomain> <5B9A1599.2060800@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1536902116 15762 195.159.176.226 (14 Sep 2018 05:15:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2018 05:15:16 +0000 (UTC) Cc: Eric Abrahamsen , "N. Jackson" , Stefan Monnier , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 14 07:15:12 2018 Return-path: Envelope-to: ged-emacs-devel@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 1g0gRj-0003zU-Bq for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2018 07:15:11 +0200 Original-Received: from localhost ([::1]:47607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0gTm-0007EB-TM for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2018 01:17:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0gTc-0007Ds-SK for emacs-devel@gnu.org; Fri, 14 Sep 2018 01:17:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0gTb-0003hR-V9 for emacs-devel@gnu.org; Fri, 14 Sep 2018 01:17:08 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0gTb-0003h0-NZ; Fri, 14 Sep 2018 01:17:07 -0400 Original-Received: from [2602:30a:2e52:d720:65b7:1416:12e7:8bfb] (port=33106 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1g0gTb-0006j2-G9; Fri, 14 Sep 2018 01:17:07 -0400 In-Reply-To: <5B9A1599.2060800@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:229766 Archived-At: On Thu Sep 13 2018 martin rudalics wrote: > One functionality Emacs is sadly lacking is that of orderly setting up > and saving compositions of windows in form of a rectangle. Eclipse > calls these "perspectives", in Emacs the concept of "window state" > comes most closely. Currently, you have to set up such a state by > using a sequence of 'split-window' calls which requires to know the > intrinsics of window splitting, the relationship of parent and child > windows, window combinations and the like. Using 'display-buffer' for > setting up states will hardly produce good results. Much agreed! How is it possible that (as confirmed on this list) gnus-window-to-buffer and gnus-add-configuration can be used to make BBDB interact with Gnus windows as expected, while BBDB's function bbdb-pop-up-window for creating BBDB windows does not know anything about Gnus' mechanism for managing window layouts? When I first heard of gnus-window-to-buffer and gnus-add-configuration I thought this cannot work with BBDB because Gnus will bring its own hand-crafted functions to create windows, functions that obey the customizations using gnus-window-to-buffer and gnus-add-configuration. > It would be nice to have some sort of basic, prefabricated layouts > like the ones you sketched and choose from them. Again: much agreed! Can `display-buffer-alist' mentioned by Stefan do that (at least: in principle)? I looked at its documentation in the elisp manual (not the Emacs manual!), and I could not figure out how to use this variable to achieve the goals discussed here. Does `display-buffer-alist' provide the same functionality as the Gnus code discussed in this thread? Certainly, it would be nice if different packages like Gnus and other MUAs could use the same code for the generic problem of defining window layouts so that a package like BBDB can interact with this, too.