From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: read syntax for window configs Date: Sat, 06 Mar 2010 19:44:01 +0200 Organization: JURTA Message-ID: <87wrxp4hlq.fsf@mail.jurta.org> References: <86bpf7q3fc.wl%lluis@ginnungagap.pc.ac.upc.edu> <87mxyrhxq8.fsf@lola.goethe.zz> <7697A57B1AD9104F993CDF6A5B69430C09227D1FCE@CORPMAIL08.corp.capgemini.com> <7697A57B1AD9104F993CDF6A5B69430C09227D1FF5@CORPMAIL08.corp.capgemini.com> <87wrxu79r6.fsf@mail.jurta.org> <87wrxuw0pd.fsf@uwakimon.sk.tsukuba.ac.jp> <86716EEF25B64190B631AD85710E965D@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267912491 20450 80.91.229.12 (6 Mar 2010 21:54:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 6 Mar 2010 21:54:51 +0000 (UTC) Cc: klaus.berndl@capgemini-sdm.com, sperber@deinprogramm.de, drew.adams@oracle.com, emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 06 22:54:46 2010 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 1No1ZG-00063g-Rj for ged-emacs-devel@m.gmane.org; Sat, 06 Mar 2010 22:29:51 +0100 Original-Received: from localhost ([127.0.0.1]:37045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnycO-0002Ya-MI for ged-emacs-devel@m.gmane.org; Sat, 06 Mar 2010 13:20:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnyZS-0000yx-7i for emacs-devel@gnu.org; Sat, 06 Mar 2010 13:17:50 -0500 Original-Received: from [140.186.70.92] (port=46440 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnyZP-0000uG-0P for emacs-devel@gnu.org; Sat, 06 Mar 2010 13:17:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NnyZN-00084D-VV for emacs-devel@gnu.org; Sat, 06 Mar 2010 13:17:46 -0500 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:32794 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnyZN-00083y-Pi for emacs-devel@gnu.org; Sat, 06 Mar 2010 13:17:45 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.68.246.cable.starman.ee [82.131.68.246]) by mx1.starman.ee (Postfix) with ESMTP id 514C03F4122; Sat, 6 Mar 2010 20:17:39 +0200 (EET) In-Reply-To: (Lennart Borgman's message of "Fri, 5 Mar 2010 18:48:13 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:121696 >> Lennart was working on something that did that (winsav.el), >> but AFAIK he's sort of abandoned it. > > Eh, no, I have not abondoned it. I am using it and it is part of nXhtml. > > To make it work properly in all cases more than simple read syntax is > required though. Yes, it requires different representations for different tasks: 1. To manipulate window configurations in one session, a cons tree should keep pointers to window structures in memory. 2. To save/restore a window configuration to/from .emacs.desktop requires to serialize/deserialize the window tree. There is already buffer serialization using `desktop-create-buffer', but no for windows. 3. To customize window layouts like `ecb-layout-define' that uses percentage instead of absolute window coordinates. -- Juri Linkov http://www.jurta.org/emacs/