From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Window configurations Date: Wed, 28 Apr 2010 09:12:56 +0200 Message-ID: <4BD7DFF8.50009@gmx.at> References: <4BB4CF6B.2000007@alice.it> <4BB9A469.6050608@alice.it> <4BC072C3.2080302@swipnet.se> <4BC0B692.2000702@alice.it> <4BC0BD6D.3060103@swipnet.se> <4BC0F715.2060605@alice.it> <45EB8DD4-B0F8-4FB3-941F-13FADA4DAD66@swipnet.se> <4BC1854B.2060409@alice.it> <4BC1A9D2.8050607@swipnet.se> <4BC206C0.2010202@alice.it> <87fx2pdvfq.fsf@mail.jurta.org> <87y6gg95ad.fsf@mail.jurta.org> <750140A47B7D4FBD93371813D65478F8@us.oracle.com> <87eii63v4j.fsf@mail.jurta.org> <0840B3F4D9E84706874EDD2CA2CC4236@us.oracle.com> <87vdbhgqgd.fsf@mail.jurta.org> <828BB36311A84C43B96D1F2A559DACAE@us.oracle.com> <87d3xo662u.fsf@mail.jurta.org> <69D40D69CC6F4982A8E91D8D8F0F494F@us.oracle.com> <87r5m4hz39.fsf@mail.jurta.org> <4BD40821.70808@gmx.at> <87zl0rtmqy.fsf@mail.jurta.org> <4BD5BC62.5070306@gmx.at> <53146.130.55.118.19.1272398101.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272447892 12318 80.91.229.12 (28 Apr 2010 09:44:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2010 09:44:52 +0000 (UTC) Cc: Juri Linkov , 'Emacs' To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 28 11:44:51 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O73p0-0006V8-Qx for ged-emacs-devel@m.gmane.org; Wed, 28 Apr 2010 11:44:47 +0200 Original-Received: from localhost ([127.0.0.1]:34152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O73p0-0003TZ-CT for ged-emacs-devel@m.gmane.org; Wed, 28 Apr 2010 05:44:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O73hQ-00006O-O0 for emacs-devel@gnu.org; Wed, 28 Apr 2010 05:36:56 -0400 Original-Received: from [140.186.70.92] (port=37349 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O73hO-00005F-BP for emacs-devel@gnu.org; Wed, 28 Apr 2010 05:36:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O73hJ-0004Fw-NE for emacs-devel@gnu.org; Wed, 28 Apr 2010 05:36:54 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:59315) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O71SH-0001TL-NN for emacs-devel@gnu.org; Wed, 28 Apr 2010 03:13:10 -0400 Original-Received: (qmail invoked by alias); 28 Apr 2010 07:13:06 -0000 Original-Received: from 62-47-56-25.adsl.highway.telekom.at (EHLO [62.47.56.25]) [62.47.56.25] by mail.gmx.net (mp013) with SMTP; 28 Apr 2010 09:13:06 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18hsHVLSQEhMOa206VbNDa3Qcrg6rmYI4HH1qvCJW 2pnCJ12O1Dp2fl User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <53146.130.55.118.19.1272398101.squirrel@webmail.lanl.gov> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.66000000000000003 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124291 Archived-At: >> Users "define" window configurations by splitting and deleting windows. >> They have no idea of the underlying window tree. > > I'm not sure that's right. While users certainly don't know about > `frame-root-window' windows, the tree is otherwise readily apparent > (since, for instance, resizing or deleting a window distinguishes > > +-+-+ +-+-+ > |A|B| |A|B| > +-|-+ and +---+ > |C|D| |C|D| > +-+-+ +-+-+ > > in an immediately obvious fashion). Yes. But by merey looking at these configuration you can't tell the difference. > Why not store a configuration as a > (resolution-independent) tree: > > subtree = window | tree ; > tree = "(", horiz, subtree, split, { split }, ")" ; > split = fraction, subtree ; > horiz = nil | t ; (* t for C-x 3 *) > fraction = ? float ? ; > window = ? ... ? ; (* the hard part *) That's more or less what I proposed earlier: All I need for the current, tiling window-manager based on window-trees is the type of the split (horizontal or vertical) and the fraction occupied by a window wrt to its parent window. This implies, however, that an overlapping manager processing such a structure must be able to understand window trees. martin