From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.help Subject: Re: MY window tree! Date: Sat, 13 Jan 2007 01:46:15 +0100 Organization: Epita/LRDE Message-ID: <87bql3sqi0.fsf@lrde.org> References: <87fyafsru9.fsf@lrde.org> <45A828DF.5080507@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0125558240==" X-Trace: sea.gmane.org 1168649224 28515 80.91.229.12 (13 Jan 2007 00:47:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Jan 2007 00:47:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 13 01:46:59 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H5X2s-0007Qt-MC for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jan 2007 01:46:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5X2s-0006sk-Kj for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jan 2007 19:46:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H5X2f-0006sS-Vt for help-gnu-emacs@gnu.org; Fri, 12 Jan 2007 19:46:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H5X2e-0006sG-IB for help-gnu-emacs@gnu.org; Fri, 12 Jan 2007 19:46:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5X2e-0006sD-Cs for help-gnu-emacs@gnu.org; Fri, 12 Jan 2007 19:46:40 -0500 Original-Received: from [212.27.42.65] (helo=smtp8-g19.free.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5X2d-0007QW-Rf for help-gnu-emacs@gnu.org; Fri, 12 Jan 2007 19:46:40 -0500 Original-Received: from localhost (ivr94-6-82-230-255-91.fbx.proxad.net [82.230.255.91]) by smtp8-g19.free.fr (Postfix) with ESMTP id 0545E5317; Sat, 13 Jan 2007 01:46:38 +0100 (CET) Original-To: "Lennart Borgman \(gmail\)" Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAYFBMVEUWCwUyFQk6JBNLGglQK BVRMiRkHQtwMBZuOCRyRi1iQiZyUUCFNxuIPCKRTC2mVTSpZTqVVS2SW0OYZkixb0qraE/KeU7EcT +4h2bPhVfQkm7hlnDkvZjYqIjrwJnzwqB5+4wZAAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWc AAAAwAAAAMADO7oxXAAADvUlEQVRIx32Wi5ajIAyGRcCAchErVqu27/+W+wfbs724i3Mcz5n/S0JI wlTbyXrs+zrFEL1zPuIdY7xO6+PBf6u27f4DrFPO3jvoQYRYFoj9CXyu+7ZPEWrXUNM0zpEfgjuY9 RTY1hyg5qUNgMb44Dwiiz5OZ8DCwVCjpdLaGNOVtw+M+Lz+AlNwRAhGSamh1abrtFKmG0DkmL8BhE +GdCNlreChBaO7DpjpIvbv/fr4AnqErhoYF6KI4aPrLIeFQLGj6RO4JWLjtdZ1WQXhvegGG0EKyO/ vwH7xJBk4tLrW5UPxN3zAufHDO3Axh4MCMPLisKQyRuJo/Btw60gpWcu6OogjsmIeiRIKgUlj3oCp a1QtRP1ywT9VfXCiZMEg4X+BfYADAHhhdc+NV1UBBT9SIedvgFFwDFslkO7S8e+KtQcohJCyefdgt DoC4pe+FB8VL3bDeiGB/AVurZJCvY5AtdaSKpYLJArxCXCOlMUpiRpF0Sbb8nZYBnGBPoGZuOCGAd lTqgXRlrrDuUgpDh+VNPYN0IRALnkIFsVTiBanbBQbesYl1Num584iojnnHIPVJRSJvFnrrFHPmD6 yBKJVbZ+nKScjIVfatlSaJ9BBiIbcW1rnOSF4F/OYGiFLQaCXyAUsLTggnAN9VOuMaBtuX1QmHwok RD4CIHzXChG5z37oWkRhxx5tCmdKNUSp7/tUYlQwQ/6z424JPtr+mlwwwbbGQj5CXwBjyPj4NQRmJ J7GZez7mPpk02W+jvgMnFrUaozhE7jPF9va+QZinMaxn0dGMSy5ExuHmdZ8APf7felTv9zGccGal3 le2JdHt0lJaGklvjwA6JcVACwXpugd+gAJQvuIL2C7r9eJgQscXQH0I+sxkrBjjE0ukW9gui7rMo9 DAoGnTzyZceA8lYh+AMxWeFiu/ZhSLCeAUex4hhPr6XsPPAqu0xRxNVAaS0J58pODvhCN/AFWziLP rMtYjsxD6y0dDpDeH2Cf+sxEyPmSYuIJbOi1zCmQc/DkbQg2FQ/O2RfgDP0Aj8eU+VpDmlpLvBkqe kTJpe5+r6xtz9A7VnCxlthfAJkz4JGRJfzVcEiHHK36BOgE2PYRPpIna0K5wAzGCLcWN6A6A3CRRu SJWo+NoybQfag9TA/CxymwTdnDWkh4cPOweckTRCkhzgH8K+ChxkKG2L4oQBlPp8B2G/sc02CDKTp xXExlOJ3q79vcpyGYlmelFOXRxyj/hwe+XnBhw6osY17wJfB/IB/3o2a14Hl8jNfqDx44iLN4w0aG AAAAAElFTkSuQmCC In-Reply-To: <45A828DF.5080507@gmail.com> (Lennart Borgman's message of "Sat\, 13 Jan 2007 01\:33\:35 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40273 Archived-At: --===============0125558240== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable "Lennart Borgman (gmail)" writes: > Micha=EBl Cadilhac wrote: >> Hi! >> >> I've been playing around with window-tree to do the following : >> - On M-x foo, a window is created on the extreme left of the frame, >> containing a buffer called *Bar*, >> - On M-x foo again, with the buffer *Bar* on the left, this window is >> removed. >> >> Problem is, this can't be done with a simple split. So my first idea >> was to reduce the frame to one window, split it: left would be *Bar* >> and restore the window-tree in the right part. >> >> Of course, this can't work, because if I use delete-other-windows, the >> windows are ... deleted. So, can't be restored. >> >> I can't find a way to do this simply, and I wonder if there is :-) >> >> How would you do? > > Using something like > > (window-buffer (nth 2 (car (window-tree)))) > > perhaps? Yeah, that's what I'm thinking about when I talk about =AB not simple ways =BB :-) This implies to parse the window-tree, and for each leaves of the tree, which is a window, get its buffer and its size; then store it in another tree to restore it. Damn, I just want to create another root, this can't be that complex, is it ? Thanks for you advice, however :-) =2D-=20 | Micha=EBl `Micha' Cadilhac | Did you Mooh today ? = | | Epita/LRDE Promo 2007 | = | | http://michael.cadilhac.name | http://boitam.eu/ = | `--JID: michael.cadilhac@gmail.com--' - = --' --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFqCvcUJhDmOfFA3URAiGaAJ9lpz73BS3CSo62TNmu43SkqmMt/QCeM1xu Fjd8zfsWRmiYoTkAe5RImiE= =GXIV -----END PGP SIGNATURE----- --=-=-=-- --===============0125558240== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0125558240==--