From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Sperber Newsgroups: gmane.emacs.devel Subject: Re: read syntax for window configs Date: Fri, 19 Mar 2010 12:09:58 +0100 Message-ID: References: <86bpf7q3fc.wl%lluis@ginnungagap.pc.ac.upc.edu> <87wrxvyijr.fsf@stupidchicken.com> <4B8C42E2.3080308@siege-engine.com> <7697A57B1AD9104F993CDF6A5B69430C09227D1F24@CORPMAIL08.corp.capgemini.com> <878wabxg0x.fsf@uwakimon.sk.tsukuba.ac.jp> <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> <4BA35681.4030005@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1269005177 3659 80.91.229.12 (19 Mar 2010 13:26:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Mar 2010 13:26:17 +0000 (UTC) Cc: mike@xemacs.org, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 19 14:26:13 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 1NscCI-0007SS-85 for ged-emacs-devel@m.gmane.org; Fri, 19 Mar 2010 14:25:06 +0100 Original-Received: from localhost ([127.0.0.1]:53933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NscCH-0006j9-Lq for ged-emacs-devel@m.gmane.org; Fri, 19 Mar 2010 09:25:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nsa5h-00043n-VM for emacs-devel@gnu.org; Fri, 19 Mar 2010 07:10:10 -0400 Original-Received: from [140.186.70.92] (port=37833 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nsa5c-00041g-Ph for emacs-devel@gnu.org; Fri, 19 Mar 2010 07:10:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nsa5b-0000Pj-7r for emacs-devel@gnu.org; Fri, 19 Mar 2010 07:10:04 -0400 Original-Received: from h615406.serverkompetenz.net ([81.169.143.132]:59888) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nsa5b-0000Od-0F for emacs-devel@gnu.org; Fri, 19 Mar 2010 07:10:03 -0400 Original-Received: from h615406.serverkompetenz.net (localhost [127.0.0.1]) by h615406.serverkompetenz.net (Postfix) with ESMTP id 7244317063; Fri, 19 Mar 2010 11:09:03 +0000 (UTC) Original-Received: from eta.local (p5B205A2A.dip.t-dialin.net [91.32.90.42]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by h615406.serverkompetenz.net (Postfix) with ESMTPSA id 13DB017062; Fri, 19 Mar 2010 11:09:03 +0000 (UTC) Original-Received: by eta.local (Postfix, from userid 2246) id ECAD06F4112; Fri, 19 Mar 2010 12:09:58 +0100 (CET) In-Reply-To: <4BA35681.4030005@gmx.at> (martin rudalics's message of "Fri, 19 Mar 2010 11:48:33 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.5-b29 (darwin) X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Fri, 19 Mar 2010 09:25:00 -0400 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:122277 Archived-At: martin rudalics writes: >> I've attached code that works for XEmacs. > > Thank you for posting this. It won't work out of the box for Emacs > because Emacs lacks `make-window-configuration' and `make-saved-window'= . > Can you post their definitions here or tell us a page on the net where > we can look at them? http://hg.debian.org/hg/xemacs/xemacs/file/45753d9a0dc4/lisp/window-xemac= s.el > Do they check a configuration for integrity (e.g., whether the > combined window sizes match those of their parents, that of the root > window the size of the frame, ...) before mapping the frame? =20 Yes: Since all restoration happens from Lisp, there's no way to get anything inconsistent. > Can you restore on machine A a configuration saved on machine B when A > and B have different toolkits? I don't see why not. You're not always going to get an identical-looking configurations because the original frame will be gone, but as close an approximation as the code knows how to recreate. > Also, am I right that the `next-child' field denotes the right sibling > of the window? If I recall correctly, it depends on whether windows are going right or down. It's just whatever `window-next-child' returns on XEmacs. > And, how do you translate back from pixel values (like `pixel-left' > ... ) to normal line/column values? Do you? No, we don't. > Finally, do you have any ideas how this would integrate with a thing > like ECB? For example, how would ECB find its editor window in a > restored configuration unless we make such a property part of the save > configuration? I don't know anything about ECB, so I don't really know. However, I would think that it needs to remember the name of the buffer to find the window, or remember the window's place in the layout. (That's a general issue with window configurations, but it becomes very clear here - there's no way to preserve window identity across sessions.) --=20 Cheers =3D8-} Mike Friede, V=F6lkerverst=E4ndigung und =FCberhaupt blabla