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: Window configurations Date: Wed, 30 Jun 2010 11:12:14 +0300 Organization: JURTA Message-ID: <87aaqdlyt2.fsf@mail.jurta.org> References: <4BB4CF6B.2000007@alice.it> <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> <4C29B675.9000500@gmx.at> <87k4phmxfs.fsf@mail.jurta.org> <4C2AE5A5.4070802@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1277886369 7080 80.91.229.12 (30 Jun 2010 08:26:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Jun 2010 08:26:09 +0000 (UTC) Cc: 'Emacs' To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 30 10:26:04 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 1OTscN-00079x-Gf for ged-emacs-devel@m.gmane.org; Wed, 30 Jun 2010 10:26:03 +0200 Original-Received: from localhost ([127.0.0.1]:34810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTscM-0002PQ-GO for ged-emacs-devel@m.gmane.org; Wed, 30 Jun 2010 04:26:02 -0400 Original-Received: from [140.186.70.92] (port=38318 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTsc2-0002OF-DX for emacs-devel@gnu.org; Wed, 30 Jun 2010 04:25:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTsc0-0001fd-UA for emacs-devel@gnu.org; Wed, 30 Jun 2010 04:25:42 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:56986 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTsc0-0001fH-P9 for emacs-devel@gnu.org; Wed, 30 Jun 2010 04:25:40 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.97.213.cable.starman.ee [82.131.97.213]) by mx1.starman.ee (Postfix) with ESMTP id 6B4CA3F40B9; Wed, 30 Jun 2010 11:25:36 +0300 (EEST) In-Reply-To: <4C2AE5A5.4070802@gmx.at> (martin rudalics's message of "Wed, 30 Jun 2010 08:35:17 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (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:126526 Archived-At: > So please have a look into what I wrote and tell me what you need to > make your code work. We could provide functions like `make-window', > `set-window-parent', `set-window-vchild', ... in Elisp and write a C > function - say `replace-window' - which replaces an existing (internal) > window with an (internal) window constructed by the routines mentioned > before. Ok, I'll have a look into what is necessary to rewrite `current-window-configuration' and `set-window-configuration' in Elisp. > But I'd do that iff your "construct configuration from sexps" approach > really profited from it since we'd have to augment the window structure > by new_parent, new_vchild, new_sibling, ... fields which is cumbersome. I guess after rewriting existing two functions `current-window-configuration' and `set-window-configuration' in Elisp, implementing "construct configuration from sexps" would be trivial. -- Juri Linkov http://www.jurta.org/emacs/